No Supported Authentification Methods AWS EC2 Instance with PuTTY - amazon-web-services

I am a newbie to SSH and want to connect to my AWS EC2 instance using PuTTY to host a Discord bot. I have generated a RSA private key using the EC2 guide and have configured PuTTY as far as importing private keys and entering hostname.
I am pretty sure I entered the information right that I got from EC2. I'm not really sure if I can get log files either. I have seen other issues like this but no one seemed to be using AWS.

Redownloaded the .pem file. Sorry for wasting your time. Thanks

Related

Amazon AWS EC2 Instance Not Connecting

I am attempting to create and connect to an Amazon EC2 instance via FidOS. I am following the procedure demonstrated in:
How to Create Amazon AWS EC2 Instance
I logged onto the AWS Console and created a general purpose Ubuntu Server Machine image.
I configured the instance details, added storage, added tags, and configured the Security Group just as in the video.
I clicked "Review and Launch" and created and downloaded the PEM key.
I generated the PPK private key using PuttyGen.
I configured my session using the public DNS in the Host Name field and uploading the private PPK key in the Authorization tab.
After I clicked Open, a terminal window appeared, but then timed out.
I am working on a Windows machine, and trying to create a Ubuntu Linux virtual machine.
Am I missing any steps or doing anything wrong? I would appreciate any help I can get.
The problem was the corporate firewall. It worked just fine when I tried it from another location.

Unable to connect to newly launched EC2 instance using SSH/HTTP

I am trying my hand to learn AWS. I have created an EC2 instance and i am trying to connect to the same using ssh/http. Neither of them seems to work. I have checked the settings of everything that can cause this issue but everything seems to be correct. Please find the screenshots of everything that i have checked.
If you need any other information please let me know because i dont know where i am going wrong.
Any help is highly appreciated.
Modify your NACL to allow SSH traffic inbound.
If you are trying to connect through SSH from Windows OS using putty, try the following,
Convert your .pem file to .ppk using puttygen.exe. Load your private key(.pem) and save the private key as .ppk
Open putty and point to the converted ppk key under Connections->SSH->Auth [private Key for authentication]
Try to connect now using the public DNS. Eg: ec2-user# as you are using AWS Image.
This should work.

What should be my host name in putty configuration for setting up SSH server?

I am setting up a node.js server on AWS EC2 using putty configurations.There I found to configure putty.I stuck filling the hostname of EC2 in putty.What will be the hostname can anyone Help?
screenshot of putty config :
Note: I have an EC2 instance launched which I have connect with this.
You can give the public ip of your ec2 instance there. which you can find in the aws management console. Attached is the screen-shot for the same.
Let me know if you are not able to connect with this method.
After generating the key .ppk go to SSH-->Auth-->Browse the .ppk key,
save it and load then open.
Log in with ec2-user.
If you want to give a try, we developed an alternative CLI for AWS that makes this much easier: awless.
It should work on Windows too and with awless, you don't need to set either your IP address nor username, just awless ssh i-1234 or awless ssh my-instance-name.
Note that you may also need to add: -i path/to/your/key.pem if the key was not created with awless.

Transitioning from Amazon AWS to a different Hosting provider

This task fell on my lap and I have no experience with Amazon aws. We run a simple informational site along with redmine (as a subdomain) using amazon aws and want to switch to simple helix. I have researched how to switch providers and I haven't found any posts that show how to do this step by step. Is there a simple way to move from Amazon aws to another provider? I think it would be best to create a duplicate of what we have on amazon aws on the simple helix server before totally dropping amazon aws. As far as I know I only have log in details to EC2 Console, no ssh log in details or FTP for amazon aws.
When an AWS instance is launched a public/private key pair is specified and installed in the running instance. You can find the name of the key-pair by looking at details of the instance in the console. Check for "Key pair name".
Hopefully, you'll have the private key of that pair somewhere at hand. If it's lost I'm not sure how to recover it without tech support from Amazon.
If you have the private key then ssh is simple, just type:
ssh -i my.private.key -l ubuntu servername
or something similar and you're in.
FTP access might require opening up a port in the firewall. Look at the security group settings for the server to see what ports are open. Secure ftp is available if you can ssh into the machine using the same private key.

How to connect same AWS EC2 instance from work and home?

I have EC2 instance running in AWS. I can access it using SSH client and private key at work. Now, I want to connect to same instance from home using Ubuntu 18.04 OS. So I copied the private key and tried using SSH commands from ubuntu terminal. But I didn't work and AWS was saying that access is denied.
I am not good with networking and security stuff. Can anyone help me on how I can access my AWS EC2 instance from ubuntu at home?
I managed to get it working finally. I went to the directory location where the key file is stored on Ubuntu terminal and then typed chmod 400 <yourPrivateKey.pem> and hit enter. Nothing happened. Then type SSH command to connect to my AWS EC2 instance. That's it, I got connected. Now, I really don't know what has happened there and how secure it is to connect this way. Any help is much appreciated.
Thanks.