Windows OS
--
Questions
--
Followers
Top Experts
I am using a Windows 10 laptop to try to open a terminal window to the AWS Ec2 instance via ssh. I am chasing my tail.
As a user, I have full administrative rights to the Ec2 instance.
The Ec2 instance is up and running.
I have OpenSSH installed, both the client and server, on my Windows laptop, and they are set to automatic-delay start. When I check them in services, they are running.
I added the IPv4 address to my host file on my laptop.
I can successfully ping the IP address by using the DNS name, i.e. mywebsite.com
If I try to ping the IPv4 Public address, it fails.
If I try to ping the Public DNS, it fails.
I have successfully created a pem file on the Ec2 instance - both types, pem and ppk.
I have tried using putty for the ppk file and that was unsuccessful too.
I tried a ssh command for the pem file which I moved to my Users/me/.ssh file and that was a no go.
I have used:
ssh -o IdentitiesOnly=yes /users/mjsay/.ssh/marthawins.pem marthaj@the IPv4 Public address i.e. 1.22.34.115I did a nslookup on the ipv4 public address and it returns:
"*** RAC2V2S can't find %the ip address%: Non-existent domain"
Can someone explain to me what I am missing? Thank you.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Which of the Amazon provided procedures did you follow?
On your W10 PC, only the OpenSSH client is needed, not the server. So unless you're going to use the server you probably should disable the service.
"SSH protocol v.1 is no longer supported"
I removed the -i and received this response:
"ssh: Could not resolve hostname /users/mjsay/.ssh/marthatest.pem: No such host is known."
Do I need to change a setting on my router ??






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Which of the Amazon provided procedures did you follow?
>> Do I need to change a setting on my router ??
For just an ssh connection I would say no but you're not clear about where you get that "SSH protocol v.1 ..." message from.
Also I don't know why you have put that IPv4 address in your hosts file?
These are 2 procedures provided by Amazon on how to connect:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/openssh.html
>> The Ec2 instance is up and running.
How did you connect to get the instance running?
Thank you for responding. I logged into the AWS acct ( I have full admin right). I made the ec2 instanc was running (and it was), it also display the address info I posted.
Also I tried the 'connect' button which is suppose to open a terminal window - no go. It is to connect to your instance and it suppose to open a terminal window, but evidently from the error message, it is not completely installed.
I have previously found before posting, read and re-read the same articles you listed but no avail. I either receive the error msgs of 'our key is not accepted' or 'host not found', 'timeout from host' or 'host not found'.
I have created key pairs in the AWS console for instance with both types of file extensions and used accordingly in with the right tool i.e. ssh with .pem key and putty with the .pkk key.
I have no way of knowing if openssh server is loaded on the ubuntu server and/or if is running. I can not get to a terminal window to check.
Also make sure you allowing port 22 access for your network on the instance firewall to allow you to ssh into the server. If you go to your instance in aws and look at the firewall rule attached to your instance make sure you are allowing port 22.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Windows OS
--
Questions
--
Followers
Top Experts
This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.