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

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
Pimeko
500 Command not understood
Posts: 4
Joined: 2020-10-01 11:27
First name: Ben
Last name: Widaw

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

#1 Post by Pimeko » 2020-10-01 11:34

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 :)
Attachments
FileZilla result
FileZilla result
Filezilla.png (12.03 KiB) Viewed 260 times

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

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

#2 Post by botg » 2020-10-05 07:56

Which version of FileZilla are you using?

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

Pimeko
500 Command not understood
Posts: 4
Joined: 2020-10-01 11:27
First name: Ben
Last name: Widaw

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

#3 Post by Pimeko » 2020-10-05 12:17

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

User avatar
boco
Contributor
Posts: 25275
Joined: 2006-05-01 03:28
Location: Germany

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

#4 Post by boco » 2020-10-05 16:11

SFTP is a subsystem of SSH2. It must be enabled on the server, in order to accept SFTP (not FTP) connections.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

Pimeko
500 Command not understood
Posts: 4
Joined: 2020-10-01 11:27
First name: Ben
Last name: Widaw

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

#5 Post by Pimeko » 2020-10-05 17:39

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!

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

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

#6 Post by botg » 2020-10-05 21:55

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.

Pimeko
500 Command not understood
Posts: 4
Joined: 2020-10-01 11:27
First name: Ben
Last name: Widaw

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

#7 Post by Pimeko » 2020-10-06 10:00

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!

Post Reply