Topic "Log in as non-shell user?"

Author Message


I've set up a SSH server with sftp support. It works fine for most accounts, but when I try to log in using an account with /bin/false as shell I get an error. It says: "Cannot initialize SFTP protocol. Is the host running a SFTP server? Connection has been unexpectedly closed. Server sent command exit status 1."
But I'm sure the SFTP server is running.
I really could use some help with this.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
Unless you are able to connect with other client, I believe that it is your server configuration issue.

But I'm sure the SFTP server is running.
From my experience, SFTP server is started only after you connect to server. It is not standalone server, running all the time. It is rather subprocess of SSHD. I do not know how this works, but it is possible that unless user has valid shell, SSHD is not able to start SFTP server for him.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License