This page explains how to use the PuTTY terminal window on Windows. For PuTTY on Linux, see the PuTTY Linux page. For information about PuTTY on Mac, see the PuTTY Mac page. Google tells me ~/.ssh/ should be 700 and and ~/.ssh/authorized_keys should be 600, so I did that. How to Use PuTTY on Windows This page is about the PuTTY SSH client on Windows. Ok, /var/log/auth.log said: sshd: Authentication refused: bad ownership or modes for directory /home/vorkbaard/.ssh How can I get this to work? Thanks! EDIT: I found that the error may be solved by putting the key in a place outside the user's home folder but that's only useful if the home folder is encrypted, which this one is not.Īlso tried generating a 4096 bit key, thinking perhaps 1024 was too short. ssh/authorized_files and loading the private one in PuTTY on my client. I also tried generating a private/public key pair on the server, putting the public key in. ssh/authorized_keys as a file, pasting the key in it. ssh/authorized_keys/ but that didn't help so I used. I tried putting the public key in a file under the directory. Now if I load the profile in PuTTY (I verified the private key is still in Connection > SSH > Auth and that the path is correct) and run the profile, it says Server refused our key Add Private key to PuTTY SSH authentication agent 5. Configure your Linux server (create user, save public key) 4. Generate a private and public key pair 3. Get the zip file with all PuTTY binaries 2. I restarted the ssh server with sudo service ssh restart How To Configure SSH Keys Authentication With PuTTY And Linux Server In 5 Quick Steps 1. In PuTTY under Connection > SSH > Auth I entered the path to the private key it generated on my client and saved the session settings. I copied the part from "ssh-rsa AAA" to and put that in the file ~/.ssh/authorized_keys on my server (in my own homefolder). In /etc/ssh/sshd_config I have this line: AuthorizedKeysFile %h/.ssh/authorized_keysĪnd on my client's public key file it says this: - BEGIN SSH2 PUBLIC KEY. I downloaded puttygen.exe and had it generate a key pair. The client is a Windows box running PuTTY and the server is a Ubuntu 12.04 LTS server. I'm trying to setup ssh authentication with key files in stead of username/password.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |