`sftp` doesn't permit login, subsystem request failed. How do I fix this?

For issues regarding settings and usage of FTP and WebDAV service, post it here!
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
incumbent
I'm New!
I'm New!
Posts: 1
Joined: Fri Apr 13, 2018 5:38 pm
Contact:

`sftp` doesn't permit login, subsystem request failed. How do I fix this?

Unread post by incumbent » Fri Apr 13, 2018 5:59 pm

This is driving me bonkers all week. I'm currently migrating ~6TB from my old NAS to my new 918+ (configured with btrfs/RAID10 for dual mirrors similar to how I use mirrored vdevs on my zpools as best as I can tell!) and while having some weird permissions issues from time to time I cannot for the life of me figure out what is happening with sftp when I attempt to start an interactive session. `ssh` works fine, for whatever that's worth. I'm also using publickey authencation but have tried password too with thee same result.

The local user I'm using to sftp is also an admin user :| I can't see any messages in the syslogs that can give me a hint, either. I've included the verbose output from a CLI-initiated `sftp` to my new 918+:

Code: Select all

❯ sftp -v -P 22 emory@debut
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/emory/.ssh/config
debug1: /Users/emory/.ssh/config line 9: Applying options for debut
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to debut.internal.domain.ch port 22.
debug1: Connection established.
debug1: identity file /Users/emory/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/emory/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/emory/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/emory/.ssh/id_dsa-cert type -1
debug1: identity file /Users/emory/.ssh/id_ecdsa type 2
debug1: key_load_public: No such file or directory
debug1: identity file /Users/emory/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/emory/.ssh/id_ed25519 type 3
debug1: key_load_public: No such file or directory
debug1: identity file /Users/emory/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.8p1-hpn14v6
debug1: match: OpenSSH_6.8p1-hpn14v6 pat OpenSSH* compat 0x04000000
debug1: Authenticating to debut.internal.domain.ch:22 as 'emory'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:7C7t/VpAOO52sV0w6Jq7FGkKNWtO6CDK+jwIU6eW834
debug1: Host 'debut.internal.domain.ch' is known and matches the ECDSA host key.
debug1: Found key in /Users/emory/.ssh/known_hosts:88
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:eHA93KWf+yAyVVbSNoe0zdLbkhJi9rWpQ9++gLLrOts /Users/emory/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 535
Enter passphrase for key '/Users/emory/.ssh/id_rsa':
debug1: Authentication succeeded (publickey).
Authenticated to debut.internal.domain.ch ([10.100.101.6]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending subsystem: sftp
subsystem request failed on channel 0
Connection closed

Post Reply

Return to “FTP & WebDAV Server”