WARNING: UNPROTECTED PRIVATE KEY FILE! when trying to SSH into Amazon EC2 Instance

前端 未结 11 2188
慢半拍i
慢半拍i 2020-12-12 11:06

I\'m working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but

11条回答
  •  温柔的废话
    2020-12-12 11:59

    Just a note for anyone who stumbles upon this:

    If you are trying to SSH with a key that has been shared with you, for example:

    ssh -i /path/to/keyfile.pem user@some-host

    Where keyfile.pem is the private/public key shared with you and you're using it to connect, make sure you save it into ~/.ssh/ and chmod 777.

    Trying to use the file when it was saved elsewhere on my machine was giving the OP's error. Not sure if it is directly related.

提交回复
热议问题