Recently I have had a chance to work with AWS EC2 Instance. I needed to download Dokku Docker image from AWS EC2 Instance.

To accomplish this, I need to use WinSCP to access to that AWS EC2 Instance. In order to use access it via WinSCP, I need to add my public key to authorized_keys. You might already know about this. But I would like to share how I did this.

You can check authorised keys on it by running this command:

Then you can vi or nano ~/.ssh/authorized_keys and add your public key next row of the existing keys. Or you can entirely replace them.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.