Trying to connect Amazon AWS EC2 instance fails.
Platform: Amazon Linux
Connection method: EC2 Instance Connect (browser-based SSH connection)
Error: There was a problem setting up the instance connection
Log in failed.
If this instance has just started up, try again in a minute or two.
Note: I am able to connect via Putty / SSH Client. But same instance can't connect via browser.
When checked network logs in browser's developer tool, see a Status Code: 400 Bad Request for following URL:
https://ec2-instance-connect.us-east-2.managed-ssh.aws.a2z.com/ls/api/tokens
Has anyone ever successfully connected to Amazon Linux EC2 instance from browser.
To test, I just did the following:
Launched an Amazon Linux 2 EC2 instance with the default security group
Clicked "Connect" in the EC2 management console
Selected "EC2 Instance Connect"
Clicked "Connect"
A new browser tab opened and a few seconds later I had a working SSH connection.
I then tried it again with an Amazon Linux (not Amazon Linux 2) instance and got the error:
There was a problem setting up the instance connection
Log in failed. If this instance has just started up, try again in a minute or two.
This is because the EC2 Instance Connect client is only pre-installed on Amazon Linux 2 and Ubuntu 16.04 or later.
You can use EC2 Instance Connect with your ssh client. In case you really need the browse-based connection, your security group must have a rule allowing SSH connections (port 22) from 0.0.0.0/0. Not much secure in my point of view...
This is for AWS Lightsail, I could not use browser to connect via SSS, instead I was able to connect via SSH using macOS terminal. I was able to login via SSH by appending my public key id_rsa.pub contents to the remote authorized_keys file, I used SFTP (Filezilla) to update authorized_keys file. For SFTP connection I downloaded ssh key from Accounts page.
Related
I am not able to access my amazon ec2 instance via ssh using putty and git bash. The webpage that it is linked to is working and I am able to connect to it.
The ec2 instance is a ubuntu machine. All the security rules are set properly. I also found that the instance is not listening on port 22. Maybe that is the problem but then how can I access it without using Putty?
Any and all help will be appreciated.....
I currently have a problem accessing the sites I had pre-configured on my Filezila. The only changes I recently made was adding a secure private key to access my EC2 instance through SFTP.
There are a number of sites that I can no longer access but before I could access
I have checked with another developer who has FTP access to the sites and he has no issue.
I get this error, see below, but it is not for all sites?
I tried deleting that SFTP key but that didn't seem to make any difference.
Any ideas?
You are connecting with the FTP protocol to EC2 with FileZilla.
SSH/SFTP key has nothing to do with the FTP protocol.
Moreover you are connected and authenticated already to the FTP server at the point you get the error.
The problem you are facing is a misconfigured firewall or NAT between you and the server that prevents the client to open data transfer connection to the FTP server.
See (my) article about FTP connection modes for details.
Though I guess the real problem is that you used to use the SFTP before and now you switched to the FTP by mistake.
It's actually not typical to connect to EC2 with the FTP. Linux EC2 servers do not have the FTP by default. Unless that is a Windows server (on the other hand, in that case it won't have SSH/SFTP by default).
For explanation how to connect to Linux EC2 server with the SFTP see (my) article Connecting Securely to Amazon EC2 Server with SFTP.
I was only provided an Amazon EC2 Window Instance: ec2-54-200-63-126.us-west-2.compute.amazonaws.com.
When I try to connect to it by using Remote Desktop Connection. It notify that:
Rmote Desktop can't connect to the remote computer for one of these reason:
1) Remote access to the server is not enabled
2) The remote computer is turned off
3) The remote computer is not available on the network
I had searched for an hour and see that I have config something with this instance?
Is there any guide, blog, website for config new instance to be connected?
Have you configured a security group (basically a firewall) for the server that has the RDP port open?
I am a new user of amazon web services and trying to learn to use the services.
I used the getting started EC2 guide to create and connect to an EC2 instance (trying to be within the free usage tier).
I am able to create the EC2 instance for both Linux and windows, but I am not been able to connect to the running instance. I followed the instruction given in the getting started guide but still not getting any positive results. I used the MindTree tool as well as the putty to connect to running Linux instance. For window server, I tried the RDP connection with the running instance.
I am getting connection time out error in MindTree, putty, and window RDP on window instance. I checked the security setting of the instance and port 22 (ssh) was enabled for the Linux instance and port 3389 (RDP) was enabled for the window instance.
Please help me resolving this issue.
Is you local firewall blocking your traffic to those ports perhaps?
The problem was the corporate LAN that was blocking the SSH and RDP traffic. I tried it in my home network and it worked like a charm.
Login to Amazon aws -> click instance -> under instance click Description tab -> Check the security groups -> view rules.
-> View rules must be like this
Ports Protocol Source default
All All sg-yourid ✔
22 tcp 0.0.0.0/0 ✔
-> If your view rules doesn't have 22 port, then click security groups -> edit -> add type = SSH, Source =All.
i am complete noob when comes to Linux . how can i connect remotely desktop or Gui to a a Ubuntu Server Cloud Guest 11.10 (Oneiric Ocelot) server in amazon aws from a windows 7 machine ,
can some one give me a link to complete tutorial
I'm going to go ahead and assume your remote Ubuntu instance doesn't have an X server installed -- i.e. you're using the command line version.
Download and install Putty and you should be able to connect to your AWS instance using the SSH keys you initially set up.
Also, recently AWS has added a new feature,
You can now log in to an EC2 instance from the AWS Management Console using an integrated SSH client.
Just right on the ec2 instance from the aws management console and click on connect and
select the second option - Connect from your browser using the MindTerm SSH Client (Java Required).
Specify the private key path and click on "launch mindterm".. thats it.