Make sure you installed openssh with following command:
sudo apt-get install openssh-server
If you have not generated an ssh keypair on your client, type
ssh-keygen -t dsa
In your $HOME/.ssh directory, create a file authorized_keys if not existing:
~/.ssh: touch authorized_keys
~/.ssh: chmod 600 authorized_keys
Copy the public key into the authorized_keys file:
~/.ssh: cat id_dsa.pub >> authorized_keys
You should be ready to go now using “ssh localhost”
Leave a Reply