Skip to content

UNREACHABLE: Permission denied (publickey). #402

Locked Answered by VorstrifeEdits
VorstrifeEdits asked this question in Questions
Discussion options

You must be logged in to vote

After playing around with it some more I was able to get it working by:

  • Taking my previously created keypair from PuttyGEN and converting the private key to OpenSSH (Linux only seems to like OpenSSH)
  • Creating a new file in ~/.ssh directory that contains the private key naming it whatever you want nano PRIVATEKEYNAME
  • Creating a config file (nano config) with the args IdentityFile ~/.ssh/PRIVATEKEYNAME so it knows to use that file (Make sure you use Identity and not Identify).
  • Also make sure you set your permissions for the PRIVATEKEYNAME file to read/write access only using chmod 600 ~/.ssh/PRIVATEKEYFILE, or it will give you an error of "unprotected private key file".
     
    Hopefully this he…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VorstrifeEdits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant