filezilla sftp timeout problem

Posted February 12, 2020 10.1k views
WordPressSolutionsDigitalOcean Cloud FirewallsUbuntu 18.04

I am running wordpress on ubuntu 18 in digitalocean and trying connect using filezilla with sftp protocol.I am using root user with password.The problem is i am always getting following error

Status: Connecting to my_ip...
Response:   fzSftp started, protocol_version=9
Command:    open "root@my_ip" 22
Error:  FATAL ERROR: Network error: Connection timed out
Error:  Could not connect to server

In digitalocean access console i run

sftp root@myip

and get message

connected to my_ip

then run following commands

netstat -plunt | grep 22

output : []

ss -nlput | grep sshd

output : []

ssh -p 22 root@my_ip

output: []

tail -f /var/log/auth.log

output : []

ufw status

output: status:inactive

iptables --list

output: []

nano /etc/ssh/sshd_config

and find following rules

ForwardX11 yes
passwordAuthentication yes
#PubkeyAuthentication yes
#port 22

I also tried to login using putty but got network error “connection time out”

so how to solve this problem so that i can login using filezilla sftp protocol?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @freshuser

Could you please let me know if you’ve disabled the Password Authentication for your droplet? If that is correct you wont be able to connect using the password in FileZilla. You can add your key to FileZilla in order to make this work.

You can check our tutorial on how to use FileZilla to transfer files.

Hope this helps! Let me know how it goes.


by Pablo Carranza
This article will teach you how to use Filezilla to transfer and manage files securely on your VPS.
  • Password Authentication yes

    i can login if i change my ip

    i have also checked whether my ip is blocked in fail2ban but no my ip was not there!!

    • Hello, @freshuser

      Could you please confirm that you’re unable to connect only via certain IP address and this is working completely fine when you try connecting from different network?

      is UFW enabled on your droplet?

      Let me know how it goes.