Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

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

/etc/ssh/sshd_config

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

 

 
  • No labels