Answers for "aws ec2 ssh connection"

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language