How to connect to AWS EC2 instance using filezillla? - amazon-ec2

I have AWS EC2 instance. I am using filezilla 3.8.0 but I cannot connect instance, filezilla doesnt accept account type normal and asking password. When I type user name ubunbu and password blank I received following message:
Disconnected: No supported authentication methods available (server sent: publickey)
I inserted pem key and converted ppk key also. My staff can connect but I cant. What is wrong?
Thanks

It happens in AWS EC2. As EC2 provide Connection through an SFTP need some other methods.
Firstly the CONNECTION will be in FTP as default. Need to change to SFTP.
Then instead of directly giving host name and password, it must be done in Site manager. Step by step procedure given below:
So the steps for troubleshooting:
Go to Filezilla's Settings
SFTP
Add Key File (Give the ppk converted key file or FZ will convert the pem ket)
Then take File in Filezilla
Go to
File
Site Manager
New Site
Give any name (ec2-amazon)
In General, give host name 'Public DNS' (eg: ec2-34-423.ap-southeast...)
Change the Protocol to SFTP
Logon Type: Normal
User : ec2-user or ubuntu - depends
Clear Password
Connect!
Hope you will be connected. Happy Hosting...:)

More specifically here's a screenshot of the dialog where you are supposed to add your ssh private key.

Try the following configuration in filezilla,
set Logon type = Interactive,Protocal = SFTP, and attach keyfile to filezilla SFTP setting from MenuBar -> Edit -> Settings ->SFTP -> Add Key File.
Hope this helps.

I was facing the same problem-
I follow up #Amith Ajith answer but found my setting was as it, is.
I choose a file as privatekey.pem which i generated.
Change "Transfer setting" as active
it worked for me.

Related

I can't access my bitnami server using ppk

Can someone help me fix this issue. I am connected few hours before but then when I tried to rename a folder using Putty I got disconnected and got this error.
Error: Disconnected: No supported authentication methods available (server sent: publickey)
I've tried the following solutions I got from the net.
- Re-gen private key
- Convert .pem to .ppk
- Move .ppk to other folder that all user has permission
- Use the ff username user,root,bitnami,ec2-user
- I tried it in Cyberduck, Winscp, filezilla, Putty
Thank you I hope someone can help me.
bitnami developer here.
Depending on which platform you are working you could download again the .pem file in order to connect to your server.
If you are working on any of our launchpads (https://aws.bitnami.com/, https://google.bitnami.com/, etc.) you have the option
to download you .pem key, so it's not necessary to regenerate the key.
On the other hand, if you are working on the amazon ec2 console and you did not download the private key pair of your server in the moment of the creation of the machine you won't be able to connect to it again unless you create another machine.
In order to reconnect to the server you should download again the key files and use it with putty/filezilla/etc. Make sure you put the correct ip of the server or you won't have access to it.

Not able to login with ssh in AWS ec2 bitnami Instance

I am not able to login with AWS ec2 Bitnami instance.
I have created new keypair for the ec2-instance and i have converted the keypair into ppk with the puttygen.
I have tried to use the login with the different user name like bitnami, ec2-user, ubuntu, root but i cant get any success i have read many blogs amazon document, bitnami document but and apply there that process but still not get success.
I have created new user group and provided access for the ssh, http, https with there defult port.
Server Details.
Instance type : m1.small
Description : https://bitnami.com
Status : available
Platform : Ubuntu
Image Size : 10GB
Visibility : Public
bitnami-magento-1.9.0.1-0-linux-ubuntu-12.04.4-x86_64-ebs
Whenever i am trying to login with the ssh i get the error message.
Disconnected: No supported authentication methods available (server sent: publickey)
Help is very much appreciated.
Thanks
This looks like your public key file is got some issue. I am guessing it should be the puTTY bug which requires an extra newline character at the end of the key file.
When creating the public key, open it in puTTYgen and copy and paste (this will make the key to be formatted in one line along with a newline) it to your authorized_keys and try to login.
For more information, read a similar question

Connect AWS - Cyberduck

I am trying to create a connection to my AWS server through my Cyberduck. I created new instance (new key pair, new pemfile). But every time I try to connect it will ask password, which I don't have any. I use my .pem to connect, but have no luck. Been trying for 2 days now. I did the chmod 400, chmod 600. Whenever I checked on my terminal using ssh, it says Permission denied (public key). Any advise? I already googled same issues, but had no luck with their solutions.
I've created this tutorial, Just follow the steps, you should be able to connect.
Steps:
Open Cyberduck - > Open Connection -> Select SFTP from drop down Provide necessary parameters and under more options Click "Use public key authentication" and specify your path to .pem file. Then press connect button
Use this if you use file zilla.

421 Sorry, cleartext sessions are not accepted on this server.

I'm trying to access an ftp from my web browser, but I get the following error : 421 Sorry, cleartext sessions are not accepted on this server. Any ideas?
"421 Sorry, cleartext sessions are not accepted on this server" means that the server is using "FTP Over Explicit TLS/SSL". This is a Good Thing.
You might be able to fix it by giving the protocol "ftpes:" instead of "ftp:":
ftpes://ftp.somesite.com/some_folder
... or ...
ftps://ftp.somesite.com/some_folder
You'll probably need to use another FTP client besides your default browser.
I don't know if newer versions of IE support FTP over SSL.
Filezilla might be a good choice:
https://filezilla-project.org/
In Filezilla.. under "File" click on the icon to open the "site manager".. then over to the right click on the "General" tab which is probably already open by default.
On the third line down where it says "Encryption".. choose "Require Explicit FTP over TLS"
That one worked fine for me.
Solution:
Just add a ftpes:// before the domain name
for example Old One,
host : domain.com
username : xxx
pass : yyy
port : 21
Now the new.
host : ftpes://domain.com
username : xxx
pass : yyy
port : 21
Advanced Option,
Login to Web Host Manager
Go To : Service Configuration
Go To : FTP Server Configuration
Check that :
TLS Encryption Support : set to “Optional”
Try that, it will work.
I was also facing the same issue and resolved after doing the following thing. If you are using filezilla as ftp client, then try this.
Host: ftpes://mydomain.com
UserName: yourUsername
Password: yourPassword
You need to just modify the Host URL. add the ftpes:// before the domain name.
Basically this issue is only coming if you are trying to access you web server from your linux(Ubuntu) machine.
From windows system its working fine.
add a ftpes:// before the domain name
If this did not work with this changes do following change.
In Filezilla goto
Edit=>Settings=>Connection=>FTP
Here Change transfer mode from Active to Passive and press OK and try connecting again.
Now-a-days, cpanel does not support FileZilla. You may find the reason here.
CPanel: After clicking on Configure FTP Client, you may find below
However, you can still be able to connect via FileZilla.
For my case, I followed below settings.
WHM Panel: Please follow the navigation. Log in to WHM Panel > Service Configuration > FTP Server Configuration
TLS Encryption Support: Optional
Allow Anonymous Logins: No
Allow Anonymous Uploads: No
FileZilla: Below is the settings for FileZilla.
In FileZilla settings (Edit > Settings), please make sure if Transfer Mode is set to Passive.
And I am able to connect to FTP successfully :)

ec2 putty connect problem

I have followed Amazon instructions to the letter and it does not work.
ec2-api-tools-1.3-34128 - this is the api tools that I got from Amazon
Set it up following instructions. Checked everything to make sure I follow instructions. When I try to use it, I only get: "invalid.blabla" depending on what command do I try to use.
Anybody with this problem?
I deleted all my instances and all key pairs.
Created new ones (instance and key pair).
Setup putty all over again like instructions say I should do
(creating .ppk file and everything).
Still the problem remains.
When I try to connect to my ec2 instance using putty
I get "login as : " ????????
Also, I am using windows vista.
Is this a problem.
Thanks
Had this same problem. I found that in putty I had to do three things (only 2 of which are mentioned in the amazon guide at http://docs.amazonwebservices.com/AmazonEC2/gsg/2007-01-19/putty.html)
provide the converted private key in the ssh -> Auth section
provide the dns name or IP
go to Connection -> Data and enter "ec2-user" as the Auto-login username
Hope this saves someone else 20 mins!
Did you make sure that you put "root" as the auto-login account in the "Data" section?
A mistake I made than gave me the same error message was setting
"root#ec2-.eu-west-1.compute.amazonaws.com" as the value in the "Host Name (or IP Address)" field in putty.
You need to specify "ubuntu#ec2-.eu-west-1.compute.amazonaws.com".

Resources