A memorandum of practice for building a data science environment with AWS LightSail
https://lightsail.aws.amazon.com
Download your private key from your account page Account page
Store the private key and configuration file in the "~ / .shh" directory
cd ~/.ssh
ls
Lightsail_ubuntu_20201123.pem config
#Lightsail_ubuntu_20201123.pem ・ ・ ・ Private key
#config ・ ・ ・ configuration file
~/.ssh/config
host lightsail_ubuntu
HostName 3.112.200.82
Port 22
User ubuntu
IdentityFile ~/.ssh/Lightsail_ubuntu_20201123.pem
ssh connection
ssh lightsail_ubuntu
Alternatively, you can add the private key option without setting the config file.
ssh -i Lightsail_ubuntu_20201123.pem [email protected]
This completes the connection!
-Ssh connect to Amazon Lightsail server https://nana4-story.com/ssh-amazon-lightsail
Recommended Posts