ec2 ssh
ssh -i path/to/AccessKey.pem [email protected]
ec2 ssh
ssh -i path/to/AccessKey.pem [email protected]
aws ec2 ssh connection
# Prevent EC2 SSH connection to prompt user to type 'y'/'n', do this:
# Normal Connection prompts user, ask for 'y' or 'n'
ubuntu@ubuntu:~/Documents$ ssh -i key/yyyyyy.pem ec2-user@ip
The authenticity of host '.................' cant be established.
ECDSA key fingerprint is SHA256:cj/OyPPnH4C+qnr1mC3sd2SqEMcWVElwKbfIH7jbs/A.
Are you sure you want to continue connecting (yes/no)? ^C
# But with "StrictHostKeyChecking=no", user can connect directly
ubuntu@ubuntu:~/Documents$ ssh -i key/yyyyyyyy.pem -o "StrictHostKeyChecking=no" ec2-user@ip
Warning: Permanently added '34.231.104.249' (ECDSA) to the list of known hosts.
Last login: Sat May 22 16:52:26 2021 from ip
__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-ami/2018.03-release-notes/
68 package(s) needed for security, out of 98 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-26-100 ~]$
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'"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us