Operating System - HP-UX
1754894 Members
4003 Online
108827 Solutions
New Discussion юеВ

Problem Connecting to a remote server via SFTP

 
Andrew Kaplan
Super Advisor

Problem Connecting to a remote server via SFTP

Hi there --

I have a system running HP-UX 11.00 with the T1471AA HP-UX Secure Shell package installed on the system. I am able to connect via SSH, but I am unable to upload or download files via SFTP. Whenever I try to connect via ssh, I am unable to establish any connection.

I have checked the /etc/services file, and there are entries for ssh at port 22 and sftp at port 115. The ssh daemon is configured to start at system boot, and there is an SFTP binary at /usr/bin and /opt/ssh/bin.

Is there something I need to configure in order to have sftp to run properly>
A Journey In The Quest Of Knowledge
3 REPLIES 3
Geoff Wild
Honored Contributor

Re: Problem Connecting to a remote server via SFTP

Did you enable sftp to /opt/ssh/etc/sshd_config ?

Should look like:

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


If not, do so then restart Secure Shell...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven Schweda
Honored Contributor

Re: Problem Connecting to a remote server via SFTP

> I am able to connect via SSH

> Whenever I try to connect via ssh, I am
> unable to establish any connection.

Huh?

> The ssh daemon is configured to start at
> system boot,

Why do you say that?

> and there is an SFTP binary at /usr/bin
> and /opt/ssh/bin.

Not a big surprise if yours looks like this:

td176> ls -l /usr/bin/sftp /opt/ssh/bin/sftp
-rwxr-xr-x 1 bin bin 510740 May 13 2005 /opt/ssh/bin/sftp
lrwxr-xr-x 1 root sys 17 Feb 17 2006 /usr/bin/sftp -> /opt/ssh/bin/sftp


Perhaps you could show some actual commands
and their output, which might make more clear
exactly what works and what doesn't, and what
happens when something fails, none of which
is obvious from your original problem
description.

If a plain "ssh other_host" does not work,
then output from a command like "ssh -v
other_host" could be useful.
Geoff Wild
Honored Contributor

Re: Problem Connecting to a remote server via SFTP

Steven - I belive that instead of:

"Whenever I try to connect via ssh, I am
unable to establish any connection. "

he meant:

"Whenever I try to connect via sftp, I am
unable to establish any connection. "

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.