If your server only allows public key ssh, you may want to allow ssh via password. We run across these servers from time to time, most frequently on Pantheon/Mercury sites, as password ssh authentication has been disabled by default. I could be wrong, but I think disabling of ssh password authentication is something done by Eric Hammond's AMI. If that assumption is correct, this information may be useful to you if you are using his AMI or a derivative of it. To enable password authentication, ssh into your server as root using a private key. Open the config file for the SSH daemon
$ vim /etc/ssh/sshd_configFind the line
PasswordAuthentication noChange to
PasswordAuthentication yesRestart the SSH daemon
$ /etc/init.d/sshd restartYou will also want to add a user and give that user sudo rights. To do it in a more ubuntu-like way, you will want to give all members of the admin group sudo privileges. Create an admin group if one doesn't already exist
$ groupadd adminAdd all admin group members as sudoers. Your sudoers file is located at /etc/sudoers but you will not want to edit this file with a normal text editor. Use visudo instead of vim to edit the file in a safe way. It will lock the file and do some error checking.
$ visudoAdd the following line to the file and write out.
%admin ALL=(ALL) ALLNow create a user, we'll call dustin, who is a member of the admin group. -s specifies the default shell for the user -d specifies the home directory -m creates a home directory -G adds the user to the admin group
$ useradd -s/bin/bash -d/home/dustin -Gadmin -m dustinFinally, set the password for the user named dustin
$ passwd dustinPhoto Credit