I have ubuntu server on AWS(amazon web services) EC2 . I access it remotely through Putty service on my windows. Unfortunately i have changed the username 'root' to some other editing the file /etc/passwd. Now i am unable to login through any user name. If i give username as 'root' or other it does not accept it but if i give it new username, it ask for the password, saying [Authenticating with public key "imported-openssh-key"], on giving password it gives alert "Authentication failed."
anyone! please help me to solve this problem. thanks in advance