
Now you should be able to login as root with your SSH keys. Share Improve this answer Follow answered at 9:41 Purushoth 31 2 This is the solution that worked for me Thank you. I hope this quick tutorial helped you to fix Cannot establish FTP connection to an SFTP server. I hope you can handle things from here onward. Also fill in the host server, port number, user password etc. In the Site Manager, go in General tab and select SFTP in Protocol. azure doesn't allow passive ftp, thats the head scratching thing here. In FileZilla menu, go to File->Site Manager. If the SFTP Protocol is specified, it is possible to specify the Logon Type as "Key File" and specify the location of the private key file ( my-ssh-key). instead of passive mode - select active mode and click ok. This is done (I believe) in the profile settings in the Site Manager of the FileZilla client. Copy the contents of my-ssh-key.pub into this file: /root/.ssh/authorized-keys (using sudo access).Ĭonfigure FileZilla to use Key logon. Troubleshooting: Accessing FTP via FileZilla Try a different FTP client instead of FileZilla. FileZilla Server is actually two parts: The visible part for administration, and the invisible server engine doing all the actual work (runs as a service by default). Login to Ubuntu with your account with sudo access.

Generate an SSH keypair, if you don't have one (can be done with this command: ssh-keygen -t rsa -b 2048 -f my-ssh-key - this will generate 2 files: my-ssh-key and my-ssh-key.pub).

In order for you to log in as root with FileZilla (or any other SFTP tool), you need to setup SSH key authentication. Root access with password is disabled by default on Ubuntu. Disclaimer: I'm not an expert on FileZilla, so for specific instructions please refer to FileZilla documentation.
