Answers for "ec2 ssh"

0

ec2 ssh

ssh -i path/to/AccessKey.pem [email protected]
Posted by: Guest on September-20-2021
0

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 ~]$
Posted by: Guest on June-16-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