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:
cat ~/.ssh/authorized_keys
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