Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

sftp client hangs during connection

Jonathan Grymes
Frequent Advisor

sftp client hangs during connection

HP-UX 11.23 on rx2620 (Itanium)

# ssh -V
OpenSSH_5.8p1+sftpfilecontrol-v1.3-hpn13v7, OpenSSL 0.9.8q 2 Dec 2010
HP-UX Secure Shell-A.05.80.002, HP-UX Secure Shell version


My hpux sftp client hangs during a connection. Below is the sftp PID that is hung during this particular connection. Has anyone had a simitar issue? If I kill the PID the connection quits normal.

 

 

# ps -ef | grep sftp
    root  6997 14697  0 11:48:35 pts/1     0:00 grep sftp
    debx 27394     1  0 10:43:33 ttyp1     0:00 /usr/bin/sftp -oFallBackToRsh=no -oForwardX11=no -oForwardAgent=no -oClearAllForwardings=yes -oProtocol=2 -F/opt/gex/etc/openss

 

Thanks,

3 REPLIES
Matti_Kurkela
Honored Contributor

Re: sftp client hangs during connection

debx 27394     1  0 10:43:33 ttyp1     0:00 /usr/bin/sftp -oFallBackToRsh=no -oForwardX11=no -oForwardAgent=no -oClearAllForwardings=yes -oProtocol=2 -F/opt/gex/etc/openss

 

Looks like you're using some special ssh configuration file with sftp. Perhaps the configuration file overrides some of the previous options on the command line. Just what is in that file?

 

Please add the -x option to your ps command, so you can see the entire command line, instead of this truncated version. There should also be a child process of sftp running the ssh command; you should check its options too. So, if "debx" is the user running sftp, I'd like you to run this command:

 

ps -fxu debx | grep -e sftp -e ssh

MK
Jonathan Grymes
Frequent Advisor

Re: sftp client hangs during connection

#  ps -fxu debx | grep -e sftp -e ssh
    debx 11366 11359  0 12:27:35 ttyp1     0:00 /opt/ssh/bin/ssh -oForwardX11 no -oForwardAgent no -oPermitLocalCommand no -oClearAllForwardings yes -o FallBackToRsh=no -o ForwardX11=no -o ForwardAgent=no -o ClearAllForwardings=yes -o Protocol=2 -F /opt/gex/etc/openssh/client/ssh_config -o Port=22 -o Cipher=3des -C -v -o KeepAlive=no -o UsePrivilegedPort=yes -o PubkeyAuthentication=yes -o PasswordAuthentication=yes -o PreferredAuthentications=publickey,password,keyboard-interactive -o HostKeyAlgorithms=ssh-rsa,ssh-dss -o MACs=hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 -l grymejo -oProtocol 2 -s -- 10.1.1.41 sftp
    debx  6792  6787  0 08:25:04 ?         0:00 sshd: debx@pts/0
    debx 11359     1  0 12:27:35 ttyp1     0:00 /usr/bin/sftp -oFallBackToRsh=no -oForwardX11=no -oForwardAgent=no -oClearAllForwardings=yes -oProtocol=2 -F/opt/gex/etc/openssh/client/ssh_config -oPort=22 -oCipher=3des -C -v -oKeepAlive=no -oUsePrivilegedPort=yes -oPubkeyAuthentication=yes -oPasswordAuthentication=yes -oPreferredAuthentications=publickey,password,keyboard-interactive -oHostKeyAlgorithms=ssh-rsa,ssh-dss -oMACs=hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96 grymejo@10.1.1.41
#

Nighwish
Frequent Advisor

Re: sftp client hangs during connection

Hi

 

 

Process of sftp should look like this without any options " sftp machine_name":

 

root@client:/# ps -ef | grep -i sftp
    root 28210 28160  0 13:52:32 pts/0     0:00 sftp machine_name
    root 28279 28215  0 13:52:45 pts/1     0:00 grep -i sftp

 

Try it with any options and see if the problem subsists

 

Regards