Answers for "connect ec2 from ubuntu"

1

ssh into ec2 from ubuntu

sudo chmod 400 ec2.pem
ssh -i ec2.pem [email protected]
Posted by: Guest on April-08-2021
0

best way to ssh to ec2 instance through public cloud

# SSH over Session Manager
host i-* mi-*
    ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
Posted by: Guest on December-25-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language