Tiny SFTP Server - Error while initializing subsystem (): The 'shell' subsystem is not enabled.

0 votes
asked Mar 4 by p1267348 (120 points)

Using the default settings, version 1.0.5 of Tiny SFTP Server, there is an issue whenever the user tries to connect, which says the 'shell' subsystem is not enabled.

Full log:
Log level changed to Debug.
Binding SFTP server to port 22...
Starting...
13:35:34.738 Info Server: Starting server.
13:35:34.738 Info Server: Listening for connections at 0.0.0.0:22.
13:35:34.738 Info Server: Server started.
SFTP server has started and is ready to accept connections.
13:37:23.738 Debug Server: Accepted connection from 192.168.56.1:57160.
13:37:23.754 Info Server: Session 1: Started on connection from 192.168.56.1:57160.
13:37:23.754 Debug SSH: Session 1: Local SSH version: SSH-2.0-RebexSSH1.0.5.25508
13:37:23.769 Debug SSH: Session 1: Remote SSH version: SSH-2.0-OpenSSH
forWindows7.7
13:37:23.769 Debug SSH: Session 1: Performing algorithm negotiation and key exchange.
13:37:23.894 Debug SSH: Session 1: Performing key exchange using diffie-hellman-group-exchange-sha256 with rsa-sha2-512.
13:37:24.269 Debug SSH: Session 1: Current encryptor is aes128-ctr/hmac-sha2-256.
13:37:25.831 Debug SSH: Session 1: Current decryptor is aes128-ctr/hmac-sha2-256.
13:37:25.831 Debug SSH: Session 1: Key exchange finished.
13:37:25.895 Debug SSH: Session 1: Performing authentication.
13:37:25.895 Debug SSH: Session 1: Starting authentication as 'tester' for 'ssh-connection'.
13:37:29.285 Info Server: Session 1: Authentication for 'tester' succeeded.
13:37:29.301 Debug SSH: Session 1: Authenticated as 'tester' for 'ssh-connection'.
13:37:29.316 Debug Server: Session 1: Rejected 'shell' subsystem.
13:37:29.316 Error SSH: Session 1: Error while initializing subsystem (): The 'shell' subsystem is not enabled.
13:37:29.316 Info SSH: Session 1: Connection reset by peer.
13:37:29.331 Info Server: Session 1: Closed connection from 192.168.56.1:57160.

This was tried using Windows Server 2016 as well as Windows Server 2012 R2.

Are there any additional configuration properties or libraries that need to be installed first to have this working?

1 Answer

0 votes
answered Mar 4 by Lukas Paluzga (480 points)

Hi,

Tiny SFTP Server does not allow shell subsystem, only SFTP connections. You can try our Buru SFTP Server which has some SSH shell functionality (see the docs for details). Please note that it is only an emulated shell, nowhere close to what real Linux SSH shell offers - the major difference being you have to specify which commands will be supported as there are only few built-in commands available.

...