Ubuntu Pastebin

Paste from Headknot at Fri, 17 Apr 2015 12:08:07 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sudo apt-get install openssh-server
ssh-keygen -t rsa
ssh-copy-id myusername@localhost
chmod 600 .ssh/authorized_keys/

sudo nano /etc/ssh/sshd_config
(uncomment "PasswordAuthentication yes" and set it to "no")
sudo service ssh restart

ssh myusername@localhost
(output: "Permission denied (publickey)")
Download as text