...
Log into the server using your existing authentication method.
Then log in as the new user and create a password for it.
Code Block | ||
---|---|---|
| ||
sudo su - mf.webmaster
pwd |
First check in your home folder that you have a .ssh directory and an authorized_keys. If you had used your account to access another server through ssh the files may have been created for you.
Code Block | ||
---|---|---|
| ||
ls -al # which will show hidden directories
ls -al .ssh # given the .ssh directory exists |
Otherwise, perform the following steps,
...
Code Block | ||
---|---|---|
| ||
cd ~/.ssh cat ~/id_rsa.pub >> authorized_keys # appends the contents of the your public key to the authorized_keys file cd ~ rm authorized_keys # no need to keep this file around |
Test Key Based
...
Authentication
Warning |
---|
Roderick you can put the instructions here. |
...