Request for subsystem 'sftp' failed on channel 0

Norm Fredrick norm at computac.com
Tue Nov 11 01:52:51 EST 2003


Hello,

I installed OpenSSH_3.7p1 on 2 AIX 4.3.3 servers last week and had this
problem on both of them. On the first server I finally re-installed the
package and that fixed it. I tried
re-installing it multiple times on the second server and still have the same
issue. I have checked everything that I can think of and spent many hours
looking for a solution. Both servers have the same csh.cshrc and csh.login
files. I don't have a personal .cshrc file on either server. I have many
more servers to install this on and would appreciate any help I can get to
solve this issue. Thank you.

Here is some of what I have and see:

OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003


% sftp localhost
Connecting to localhost...
norm at localhost's password:
Request for subsystem 'sftp' failed on channel 0
Connection closed


% sftp -s /usr/local/libexec/sftp-server localhost
Connecting to localhost...
norm at localhost's password:
sftp>

% sftp -P /usr/local/libexec/sftp-server
Attaching to /usr/local/libexec/sftp-server..
sftp>

sshd_config:

# override default of no subsystems
Subsystem sftp  /usr/local/libexec/sftp-server

.login:
#!/bin/csh
set path = ( /usr/bin /etc /usr/sbin /usr/local/bin /usr/local/libexec
/usr/ucb
$HOME/bin /usr/bin/X11 /sbin . )
setenv MAIL "/var/spool/mail/$LOGNAME"
setenv MAILMSG "[YOU HAVE NEW MAIL]"
#if ( -f "$MAIL" && ! -z "$MAIL") then
#       echo "$MAILMSG"
#endif


csh.login:
# If LC_MESSAGES is set to "C at lft" and TERM is not set to "lft",
# unset LC_MESSAGES.
if ($?LC_MESSAGES) then
        if ("$LC_MESSAGES" == "C at lft" && "$TERM" != "lft") then
                unsetenv LC_MESSAGES
        endif
endif


Norm Fredrick
Computac Inc.
Network Administrator
603-298-5721
603-298-6189  Fax




More information about the openssh-unix-dev mailing list