Answers for "ubuntu ssh key only"


ubuntu ssh key only

# To disable tunneled clear text passwords, change to no here!

sudo nano /etc/ssh/sshd_config

PasswordAuthentication no
PubkeyAuthentication yes
RSAAuthentication yes
And restart sshd
sudo service ssh restart

# Permission denied (publickey)
Chances are, your /home/<user> 
or ~/.ssh/authorized_keys permissions are too open by OpenSSH standards.
You can get rid of this problem by issuing the following commands:
chmod go-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
Posted by: Guest on July-05-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language