SFTP timeout

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
stack
500 Command not understood
Posts: 4
Joined: 2023-04-13 02:16
First name: Stack
Last name: Korrora

SFTP timeout

#1 Post by stack » 2023-04-13 02:33

I've got an SFTP server on Linux that I've been running for a while. I'm a simple guy and the command line has been working great. Wanted to share a few of my project files with a friend who prefers using FileZilla. He had issues. So I installed FileZilla on my Ubuntu laptop and can confirm.

My SSH configuration is pretty simple:


$ sed -e '/^#/d;/^$/d' /etc/ssh/sshd_config
Include /etc/ssh/sshd_config.d/*.conf
AuthorizedKeysFile .ssh/authorized_keys
Subsystem sftp /usr/libexec/openssh/sftp-server
Match group sftpusers
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

When I crank the logging on the SSH server - it looks like a standard connection. Nothing weird at all. But FileZilla times out:
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server

It never shows anything on the server side for a list of files.

I know the server works and there isn't anything like a firewall blocking because the command line works from the same host (I can get and put files just fine). I've dug around and looked at the other configs posted here in the forums, but I don't see anything different then what I'm already doing.

I tried using ` filezilla --debug-startup --verbose` for more information but that didn't give me anything of use at all. Just GTK and dbus warnings.

Any thoughts on why FileZilla doesn't like my sftp server?
Thanks!

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: SFTP timeout

#2 Post by botg » 2023-04-13 07:52

Are you able to use the sftp command-line tool to connect to this server?

stack
500 Command not understood
Posts: 4
Joined: 2023-04-13 02:16
First name: Stack
Last name: Korrora

Re: SFTP timeout

#3 Post by stack » 2023-04-13 11:52

>> ... the command line has been working great. ...

>> ... the command line works from the same host (I can get and put files just fine). ...

> Are you able to use the sftp command-line tool to connect to this server?

Yes.

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: SFTP timeout

#4 Post by botg » 2023-04-13 14:06

Could you please provide a complete log from FileZilla, with the debug log level set to the maximum on the debug page in the settings dialog of FileZilla?

Using the command-line client, are you logging in using a password, or are you using public/private key authentication?

stack
500 Command not understood
Posts: 4
Joined: 2023-04-13 02:16
First name: Stack
Last name: Korrora

Re: SFTP timeout

#5 Post by stack » 2023-04-13 15:12

> with the debug log level set to the maximum on the debug page in the settings dialog of FileZilla

That's EXACTLY what I needed. I was hopeful that the debug from the command line help option would give me that information. As I've not used FileZilla before, that was the debug I needed. Turns out, our password manager was adding a newline at the end of the password. Taking that off and it all works.

What is _really_ baffling to me is that on the server side, I see a successful login. Yet, the FileZilla debug log says:

> Trace: Command containing newline characters, aborting.

And then it hangs. Very very strange.

This is FileZilla from Ubuntu version 3.58.0-1 if that helps. I don't know why it doesn't just ignore or strip the newlines from the password file but... that's also partly the password managers fault as well as me (aka: the user) for not typing it in directly.

Will reach out to my friend and see if this is the same issue he's having.

Thank you so much for pointing me to the correct debug logs!

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: SFTP timeout

#6 Post by botg » 2023-04-13 15:26

That's weird. You are not even supposed to be able to enter newlines in the password fields.

stack
500 Command not understood
Posts: 4
Joined: 2023-04-13 02:16
First name: Stack
Last name: Korrora

Re: SFTP timeout

#7 Post by stack » 2023-04-13 18:52

It does. Here's an example of what I put into a geany (text editor) to copy 1, newline, 2 then pasting into the password field.
Attachments
characters.jpg
characters.jpg (7.25 KiB) Viewed 1290 times

kimmerin
504 Command not implemented
Posts: 8
Joined: 2023-04-12 20:06

Re: SFTP timeout

#8 Post by kimmerin » 2023-04-14 12:11

Entering text and pasting texts seem to be different on a technical level.

Post Reply