Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
No Format
sudo apt-get install -y openssh-server
sudo nano /etc/ssh/sshd_config
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

Note: If you mess with Permissions, SSH will SILENTLY FAIL. Here are correct Perms

No Format
 sudo chmod 700 ~/.ssh && sudo chmod 600 ~/.ssh/authorized_keys && sudo chown $USER:$USER ~/.ssh -R && sudo service ssh restart

/etc/ssh/sshd_config

No Format
change LogLevel INFO to VERBOSE
#PasswordAuthentication yes
PasswordAuthentication no #Disables login via Username/PWD
PermitRootlogin no
#AuthorizedKey file 
AuthorizedKey file (aka uncomment)