Setting IdentitiesOnly prevents failed authentications from occurring, when ssh would otherwise attempt to login with multiple keys. You can add IdentitiesOnly yes to ensure ssh uses the specified IdentityFile and no other keyfiles during authentication. Your config file should have something similar to the following: Host SERVERNAME Do I need to create an authorized_keys file on my local machine?ĮDIT: This is what I get when I run ssh -vvv -i id_rsa debug3: authmethod_lookup publickeyĭebug3: remaining preferred: keyboard-interactive,passwordĭebug1: Next authentication method: publickeyĭebug2: we sent a publickey packet, wait for replyĭebug1: Authentications that can continue: publickeyĭebug2: we did not send a packet, disable methodĭebug1: No more authentication methods to try.Ĭonfigure ssh to use the key. ssh directory on my local Ubuntu machine, I have my id_rsa and id_rsa.pub files. It's not a problem with how ssh is set up on my Linode because I can ssh to it from my Windows machine using key authentication. However, whenever I try to ssh to my Linode I get the error message Permission denied (publickey). I have created a private and public key on my local machine and copied my public key to my Linode's authorized_keys file. I am trying to connect to a Linode (running Ubuntu 12.04 LTS) from my local machine (also running Ubuntu 12.04 LTS)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |