Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Log into the server using your existing authentication method.

Then log in as the new user and create a password for it.

Code Block
languagebash
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
languagebash
ls -al # which will show hidden directories
ls -al .ssh # given the .ssh directory exists

Otherwise, perform the following steps,

...

Code Block
languagebash
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.

...