Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata


sudo apt-get install -y openssh-server


sudo yum install -y openssh-server
mkdir ~/.ssh
sudo nano ~/.ssh/authorized_keys
sudo nano ~/.ssh/id_rsa
sudo chmod 755 /home/$USER
sudo chmod 700 ~/.ssh
sudo chmod 400 ~/.ssh/id_rsa
sudo chmod 600 ~/.ssh/authorized_keys
sudo chown $USER:$USER ~/.ssh -R
sudo nano /etc/ssh/sshd_config && sudo service ssh restart


#AuthorizedKey file 
AuthorizedKey file (aka uncomment)

Note: SSH Is very picky about Permissions!

I've seen it fail if any of the following have bad permissions


To Debug:

tail -F /var/log/auth.log
  • No labels