I’m trying to connect my SUSE 10.3 desktop Linux machine to our z/OS mainframe via SSH using port 2222. I have modified the SSH_CONFIG file to use port 2222 when connecting and I get connected, but as soon as I enter my password I get the following error:
Request for subsystem ‘sftp’ failed on channel 0
Couldn’t read packet: Connection reset by peer
This is a common problem/mistake. (Do a Google search and you’ll see. )
In /etc/ssh/sshd_config, depending on the SSH server that you’re running, you’ll need to add a line such as
# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
… after, of course, making sure that “sftp-server” is, in fact, in /usr/lib/ssh. If that doesn’t work, post back with the SSH server that you’re running (probably OpenSSH, but it doesn’t hurt to be sure).