![]() ![]() ![]() Make a backup of your private key and then deny PasswordAuthentication PasswordAuthentication no Now your are good to go ! ssh everything works just fine Generate new keys setting a password is optional but is a good idea ssh-keygen -t rsa -b 2048Ĭopy pub key to your server ssh-copy-id -i id_rsa.pub ssh agent On the client side cd /home/your_home/.ssh Now restart sshd service systemctl restart sshd Make sure that is set to UsePAM yes UsePAM yes Make sure that ChallengeResponseAuthentication noĬomment those lines for GSSAPI #GSSAPIAuthentication yes ![]() Keep as yes for testing purposes PasswordAuthentication yes Or just run chmod 0600 /home/your_home/.ssh/authorized_keys 1 vini vini 393 Nov 23 15:28 /home/vini/.ssh/authorized_keys Now make sure that authorized_keys looks like this ~]$ ls -ld /home/vini/.ssh/authorized_keys If it is not looking like this, run chmod 0700 /home/your_home/.ssh ssh folder ~]$ ls -ld /home/vini/.ssh/ĭrwx. If it is not like this, run chmod 0700 /home/your_home Is not as secure as using private and public keys for authentication !įirst make sure that that you have the fallowing permissions set, on the server side.įirst check your home dir (SERVER SIDE) ~]$ ls -ld ~ĭrwx. Setting PasswordAuthentication to yes, is not the best way to go , Ssh : Permission denied (publickey,gssapi-with-mic) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |