first, add the username for your ssh login:
$ adduser bob
now, to give that user acces:
$ sudo visudo
add this line under the identical one with "root":
$ bob ALL=(ALL) all
to enable passwoth authentification:
$ sudo vim /etc/ssh/sshd_config
and uncomment or change the "no" to "yes":
PasswordAuthentication yes
repeat the previous step here (not sure if this is necessary though):
$ sudo vim /etc/ssh/ssh_config
lastly:
$ sudo service ssh reload
try logging in with a username and password now!
i went thru the steps here and slightly adjusted them to how i found a solution (and copied the formatting): http://thekeesh.com/2011/05/setting-up-user-accounts-password-authentication-and-ssh-keys-on-a-new-ec2-instance/
No comments:
Post a Comment