1751867 Members
5462 Online
108782 Solutions
New Discussion

Re: sftp problem

 
dictum9
Super Advisor

sftp problem

 

When I run sftp, I get no output whatsoever, not even an error message. How do i diagnose this? hp-ux 11.31

 

 ssh -v                                                                       #06/16/15 9:38AM#
OpenSSH_6.2p1+sftpfilecontrol-v1.3-hpn13v12, OpenSSL 0.9.8y 5 Feb 2013
HP-UX Secure Shell-A.06.20.006, HP-UX Secure Shell version

 

# /opt/ssh/bin/sftp -v  -v -v  xxx.xxx.xx.xx
                                                  

 

 

5 REPLIES 5
Steven Schweda
Honored Contributor

Re: sftp problem

> [...] hp-ux 11.31

 

   On what?

 

      uname -a

 

> OpenSSH_6.2p1+sftpfilecontrol-v1.3-hpn13v12, OpenSSL 0.9.8y 5 Feb 2013

 

   Newer than mine, so I know nothing, but...

 

> When I run sftp, I get no output whatsoever, [...]

 

   For how long?  True for all servers, or only "xxx.xxx.xx.xx"?  For
all users?  (Is "xxx.xxx.xx.xx" an IP address?)

 

      truss /opt/ssh/bin/sftp -vvv xxx.xxx.xx.xx

dictum9
Super Advisor

Re: sftp problem

# uname -a                                                                      #06/17/15 7:42AM#
HP-UX xxxxxx B.11.31 U ia64 2534092628 unlimited-user license

 

True for all users, for all target computers.

 

I have copied sshd_config and ssh_config from another machine, restarted ssh to no avail.

 

 

 

dictum9
Super Advisor

Re: sftp problem

Sometimes I get this in reply:

 

Connection closed

 

Steven Schweda
Honored Contributor

Re: sftp problem

> For how long?

 

> [...] (Is "xxx.xxx.xx.xx" an IP address?)

 

>       truss /opt/ssh/bin/sftp -vvv xxx.xxx.xx.xx

 

   Still wondering.

 

> [...] for all target computers.

 

   You really tried _all_ possible target computers?  How many was

that?

 

> I have copied sshd_config and ssh_config from another machine,

 

   Why? Were they different?  I would not expect "sshd*" to affect
greatly a _client_ problem.

 

> restarted ssh

 

   Which means what, exactly?  As usual, showing actual commands with

their actual output can be more helpful than vague descriptions or
interpretations.

 

> Sometimes I get this in reply:
> Connection closed

 

   Can you communicate with "xxx.xxx.xx.xx" (whatever that is) in any
other way (FTP, ssh, Telnet, ...)?

dictum9
Super Advisor

Re: sftp problem

The problem was that the ssh file was set to 0 in size. Strange. I copied a working ssh file and all is working.

 

Also there were multiple versions of ssh on the system, but apparently the necessary one was null in size.