This paper presents a distributed user authentication scheme in wireless sensor networks. Our scheme is based on the self-certified keys cryptosystem (SCK), and we have modified it to use Elliptic Curve Cryptography (ECC) to establish pair-wise keys for use in our user authentication scheme. The proposed scheme imposes very light computational and communication overhead, and our analysis also shows that our scheme is feasible for the real wireless sensor network applications.