id_rsa.pub file SSH Error: invalid format

前端 未结 5 480
野的像风
野的像风 2021-02-05 03:31

My co worker and I have been trying to get my macbook to ssh into our AWS production server with no luck, this did work several months ago, but when we went to do it yesterday -

5条回答
  •  -上瘾入骨i
    2021-02-05 04:02

    The IdentityFile configuration parameter should be pointed at the private key which the SSH client uses to prove its identity to the remote server. (The remote server, then, should have the contents of id_rsa.pub installed in its authorized_keys file, or an equivalent location).

    You should be putting the path to id_rsa, not id_rsa.pub, as an argument to IdentityFile in your ~/.ssh/config.

提交回复
热议问题