scp (secure copy) to ec2 instance without password

前端 未结 14 1847
野性不改
野性不改 2020-12-02 03:32

I have an EC2 instance running (FreeBSD 9 AMI ami-8cce3fe5), and I can ssh into it using my amazon-created key file without password prompt, no problem.

However, whe

14条回答
  •  Happy的楠姐
    2020-12-02 03:50

    Just tested:

    Run the following command:

    sudo shred -u /etc/ssh/*_key /etc/ssh/*_key.pub
    

    Then:

    1. create ami (image of the ec2).
    2. launch from new ami(image) from step no 2 chose new keys.

提交回复
热议问题