Page 1 of 1

[SFTP] Connected to server but "not connected to any server"

Posted: 2020-10-01 11:34
by Pimeko
Hi everyone!

I own a remote server on which I can SSH/connect to with a private key (.ppk / .pem) and it works fine. However, when I try to connect to it with SFTP on FileZilla using the same credentials and private key file, it says "Connected to XX.XXX.XX.XXX" but in the directory panel, it says "Not connected to any server" (see the screen)

When checking the logs on the server side, it does say "pam_unix(sshd:session): session opened for user XX" so the connection is definitely established.

Do you guys have any idea?
Thank you :)

Re: [SFTP] Connected to server but "not connected to any server"

Posted: 2020-10-05 07:56
by botg
Which version of FileZilla are you using?

What SSH and SFTP server software (product and version) are running on the server machine?

Re: [SFTP] Connected to server but "not connected to any server"

Posted: 2020-10-05 12:17
by Pimeko
I am using FileZilla 3.50.0.

The server machine is running on Debian 9 and there is a .ssh/ folder that contains the authorized keys for the public/private key combination. I can SSH to the server properly, and I thought it would work fine with FTP connection using the same credentials. Isn't it how it is working?

Thank you

Re: [SFTP] Connected to server but "not connected to any server"

Posted: 2020-10-05 16:11
by boco
SFTP is a subsystem of SSH2. It must be enabled on the server, in order to accept SFTP (not FTP) connections.

Re: [SFTP] Connected to server but "not connected to any server"

Posted: 2020-10-05 17:39
by Pimeko
I think I understand. Do you have any guidelines or places I should search for in order to enable FTP on the server-side?

Since there is an SFTP option on FileZilla, I thought it would be enough to put in the credentials that work for SSH and have access to directory's data.

Thank you for your answers!

Re: [SFTP] Connected to server but "not connected to any server"

Posted: 2020-10-05 21:55
by botg
Please provide a complete and unmodified log of a connection attempt with the debug log level set to 3 in the settings dialog of FileZilla.

Re: [SFTP] Connected to server but "not connected to any server"

Posted: 2020-10-06 10:00
by Pimeko
I finally managed to get it working! It was the configuration in sshd_config that wasn't correct.

For future people with the same problem, here is the interesting part in my /etc/ssh/sshd_config (and make sure there is no other line with "Subsystem sftp ...")

Code: Select all

Subsystem sftp internal-sftp
       Match group ftp
       ChrootDirectory /
       AllowTCPForwarding yes
Then add your users to the ftp group and it works.

Thank you all for the answers!