Operating System - HP-UX
1825827 Members
2908 Online
109688 Solutions
New Discussion

Can connect via SSH, but via SFTP

 
Andrew Kaplan
Super Advisor

Can connect via SSH, but via SFTP

Hi there --

I have the HP Secure-Shell 4.20 application installed on an 11.00 system, and while I can connect via SSH, I cannot do the same via SFTP. I checked the sshd_config file, and the following line exists in the file:

Subsystem sftp /opt/ssh/libexec/sftp-server

Is there something else that needs to be configured or activated in order for SFTP to work? Thanks.
A Journey In The Quest Of Knowledge
10 REPLIES 10
Court Campbell
Honored Contributor

Re: Can connect via SSH, but via SFTP

do you see anything in your syslog that would help troubleshoot?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: Can connect via SSH, but via SFTP

Shalom,

The default configuration should do the trick.

You may wish to check another clean system to see if sshd_config has been changed.

syslog is also a good idea.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrew Kaplan
Super Advisor

Re: Can connect via SSH, but via SFTP

Hi there --

The only reference to SFTP is a line that reads as follows:

subsystem request for sftp

There aren't any followup messages to it.

We don't have any machines with a similar configuration, so I can't make a comparision to another.

A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Can connect via SSH, but via SFTP

edit your sshd_config file and uncomment the line

#LogSftp no

and chge it to yes like so:

LogSftp yes

and uncomment change

#SftpLogLevel INFO


then stop and start sshd. then look at your syslog messages. hopefully something more useful shows up.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Can connect via SSH, but via SFTP

Also, can anyone sftp, or is every user account having this issue? you might try creating another account and testing it.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Can connect via SSH, but via SFTP

I made the changes that were suggested, and after restarting ssh I attempted to use sftp again. The error messages I saw in the syslog file were as follows:

Apr 4 15:05:23 pocus1 sshd[9834]: Accepted password for kaplan from port 2410 ssh2
Apr 4 15:05:23 pocus1 sshd[9876]: subsystem request for sftp
Apr 4 15:06:05 pocus1 sshd[9894]: error: PAM: conversation function passed a null context
Apr 4 15:06:05 pocus1 sshd[9894]: error: PAM: Conversation failure for from
A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Can connect via SSH, but via SFTP

try installing patch PHCO_34806.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
SGUX
Valued Contributor

Re: Can connect via SSH, but via SFTP

you could check /opt/ssh/newconfig/opt/ssh/etc/sshd_config and compare this with your active sshd_config.
SGUX
Valued Contributor

Re: Can connect via SSH, but via SFTP

especially on the UsePAM and ChallengeResponseAuthentication remarks
i'm not sure but it is worth a try
Andrew Kaplan
Super Advisor

Re: Can connect via SSH, but via SFTP

Hi there --

I installed patch PHCO_84806 and also ran the diff command on the /opt/ssh/etc/sshd_config and the /opt/ssh/newconfig/opt/ssh/etc/sshd_config files, and there wre no apparent differences between the two.

The SFTP capability is still not working. Does anyone have any other ideas? Thanks.
A Journey In The Quest Of Knowledge