Operating System - HP-UX
1751687 Members
5984 Online
108781 Solutions
New Discussion юеВ

Re: Getting "Connection Refused" message when using sftp

 
SOLVED
Go to solution
G V R Shankar
Valued Contributor

Re: Getting "Connection Refused" message when using sftp

the command is

netfmt -t 5 -f /var/adm/
Paul Maglinger
Regular Advisor

Re: Getting "Connection Refused" message when using sftp

Okay, I need the help but I really don't need the sarcasm.

I'm using the IP address now on all my tests to rule out a DNS problem.

I get a login prompt from the remote system when I use Putty on my Windows system, using an IP address.

You were questioning my claim that sshd was running. Apologies for not specifying that I checked it on my system. Doesn't the fact that I could get the login prompt from the remote server on the SCO and Windows boxes indicate that sshd was running on the remote system?

And if I haven't stripped your gears by my previous comments to the point where you won't help me...

From the SCO box:

telnet 65.79.165.194 22
Trying 65.79.165.194...
Connected to 65.79.165.194.
Escape character is '^]'.
SSH-2.0-VShell_2_6_4_448 VShell

From the Windows box:

login as:

From the HP-UX client:

telnet 65.79.165.194 22
Trying...
telnet: Unable to connect to remote host: Connection refused

G V R Shankar
Valued Contributor

Re: Getting "Connection Refused" message when using sftp

Hi,

Also please give me the o/p of ssh -v -v server name

and try restarting sshd

/sbin/init.d/secsh stop
/sbin/init.d/secsh start

Cheers,
Ravi.
Paul Maglinger
Regular Advisor

Re: Getting "Connection Refused" message when using sftp

OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version

Stopping and restarting the service on my side (client) didn't help.
G V R Shankar
Valued Contributor

Re: Getting "Connection Refused" message when using sftp

Hi,

Please check the time stamp of /var/adm/net*

if it is latest, please give the o/p of the following
netfmt -t -f /var/adm/

Ravi.
Paul Maglinger
Regular Advisor

Re: Getting "Connection Refused" message when using sftp

Time stamp on /var/adm/nettl.LOG000 is December 1.
G V R Shankar
Valued Contributor

Re: Getting "Connection Refused" message when using sftp

Hi,

I think the connection is getting refused because of protocal version. Since it working with putty,

I need you to try the following from the hpux client.

ssh -1 hostname
ssh -2 hostname

Ravi.
Paul Maglinger
Regular Advisor

Re: Getting "Connection Refused" message when using sftp

# ssh -1 sftp.domainname.com
ssh: connect to host sftp.domainname.com port 22: Connection refused
# ssh -2 sftp.domainname.com
ssh: connect to host sftp.domainname.com port 22: Connection refused
G V R Shankar
Valued Contributor

Re: Getting "Connection Refused" message when using sftp

ssh -v -v -v sftp.domainname.com
o/p please.
Paul Maglinger
Regular Advisor

Re: Getting "Connection Refused" message when using sftp

ssh -v -v -v CARSFTP.EDIFACEINFO.COM
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug3: RNG is ready, skipping seeding
debug2: ssh_connect: needpriv 0
debug1: Connecting to sftp.domainname.com [###.###.###.###] port 22.
debug1: connect to address ###.###.###.### port 22: Connection refused
ssh: connect to host sftp.domainname.com port 22: Connection refused

*(IP address has been sanitized)