Dobry den Lukasi,
This seems to be a default behavior of a recent Cisco IOS to request 'shell' subsystem functionality for an scp transfer - even it has nothing to use shell for. See the below logs where I've tried to simply transfer a file to and from an IOS device to Tiny SFTP. Possibly it's a way how IOS transfers a file (exec command...?)
Upload from an IOS device to server:
12:26:07.091 Info Server: Session 1: Started on connection from .....:16034.
12:26:10.754 Info Server: Session 1: Authentication for 'tac' succeeded.
12:26:10.801 Error SSH: Session 1: Error while initializing subsystem (, scp -v -t isr4400-universalk9.17.06.03a.SPA.bin): The 'shell' subsystem is not enabled.
12:26:10.816 Info SSH: Session 1: Connection closed by the remote host.
12:26:10.854 Info Server: Session 1: Closed connection from ...:16034.
Download from server to an IOS device with debug enabled:
12:30:17.944 Debug Server: Accepted connection from ...:25338.
12:30:17.944 Info Server: Session 2: Started on connection from 10.240.4.76:25338.
12:30:17.959 Debug SSH: Session 2: Local SSH version: SSH-2.0-RebexSSH_5.0.8062.0
12:30:17.975 Debug SSH: Session 2: Remote SSH version: SSH-2.0-Cisco-1.25
12:30:17.991 Debug SSH: Session 2: Performing algorithm negotiation and key exchange.
12:30:18.006 Debug SSH: Session 2: Performing key exchange using ecdh-sha2-nistp256 with rsa-sha2-512.
12:30:18.025 Debug SSH: Session 2: Cipher info: SSH 2.0, ecdh-sha2-nistp256, rsa-sha2-512, aes128-ctr/aes128-ctr, hmac-sha2-256-etm@openssh.com/hmac-sha2-256-etm@openssh.com
12:30:18.028 Debug SSH: Session 2: Key exchange finished.
12:30:18.044 Debug SSH: Session 2: Performing authentication.
12:30:18.059 Debug SSH: Session 2: Starting authentication as 'tac' for 'ssh-connection'.
12:30:20.629 Info Server: Session 2: Authentication for 'tac' succeeded.
12:30:20.629 Debug SSH: Session 2: Authenticated as 'tac' for 'ssh-connection'.
12:30:20.660 Debug SSH: Session 2: Received SSH_MSG_CHANNEL_REQUEST: exec('scp -v -f testfile.txt').
12:30:20.660 Debug Server: Session 2: Rejected 'shell' subsystem.
12:30:20.675 Error SSH: Session 2: Error while initializing subsystem (, scp -v -f testfile.txt): The 'shell' subsystem is not enabled.
12:30:20.691 Info SSH: Session 2: Connection closed by the remote host.
12:30:20.691 Info Server: Session 2: Closed connection from ...
This unfortunately limits Tiny SFTP usability for this use case.
By any chance can be considered adding a "dummy" shell support even to this product?
Thank you.