HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

ls command results in session hang for sftp.

 
SOLVED
Go to solution
Prakash1178
Advisor

ls command results in session hang for sftp.

Hi,
When I am doing "sftp" on my server and executing "ls" command, it results in session hang.
In normal "ssh" session also sometimes it get hang.

I have checked the file/directory rights, its ok.
I also have checked the sftp user rights also, its ok.

FYI : My server is using Linux.
6 REPLIES
Steven E. Protter
Exalted Contributor

Re: ls command results in session hang for sftp.

Shalom,

Post the ls commands without sftp involved.

There could be soft link to something forbidden, or a soft link to nfs.

Lots of things can go wrong.

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
Prakash1178
Advisor

Re: ls command results in session hang for sftp.

Hi Steven,

Thanks for your reply.

Below is the ls command output without sftp involved. Its ls command output in ssh session.

Thanks for the further investigation.
======================================================
GWKPER001:> ls
./ .bash_profile.ori ems/ OamMt.trace.b .ssh/
../ .bashrc generateFeatureKey .profile .tcshrc
.......... cd install.log pwd Trace 01jul09.txt
anaconda-ks.cfg cfgCommandExecResult_SIM04 install.log.syslog .rhosts uk1.log
.bash_history cfgCommandExecResult_SIM06 .lesshst sipmNodProblem_26thOct./ wss_data.cfg
.bash_logout .cshrc ls sipmNodProblem_26thOct.tar.gz .Xauthority
GWKPER001:> cd /voice/IVR
GWKPER001:> ls
./ IVR1043..cfg IVR1088..cfg IVR1133..cfg IVR1178..cfg IVR1223..cfg IVR1268..cfg IVR1313..cfg IVR917..cfg IVR962..cfg
../ IVR1044..cfg IVR1089..cfg IVR1134..cfg IVR1179..cfg IVR1224..cfg IVR1269..cfg IVR1314..cfg IVR918..cfg IVR963..cfg
Kapil Jha
Honored Contributor

Re: ls command results in session hang for sftp.

can you let us know if only ssh is hanging, what about telnet, rsh.

does it hangs forever for come out after some time.

Plesse send ls -lrt and mark where is hung.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Prakash1178
Advisor

Re: ls command results in session hang for sftp.

HI Kapil,

Telnet is not allowed on my server, we are using only ssh.

Session gets hang forever.

following is the output of ls -lrt from my server's ssh session.
============================================
GWKPER001:>
GWKPER001:> ls -lrt
total 7376
-rw-rw-rw- 1 root uucp 1697 Nov 11 05:10 IVR1400.cfg
===========================================

Thanks & Regards,

Prakash.

OldSchool
Honored Contributor
Solution

Re: ls command results in session hang for sftp.

I'm confused...are you using ssh/sftp TO connect to Linux (as you mentioned you're "server" is Linux).

If so, the problem is (most likely) on that end of the connection.


If you're connecting FROM Linux to HP, I've seen similar issues with older versions of sshd running on 11.0 (but you didn't mention the OS release either).

In the cases I mentioned above, there were also issues with Expect hanging when the session was done. The same "expect" scripts ran fine with telnet or remsh.

A little clarification if you please?

Prakash1178
Advisor

Re: ls command results in session hang for sftp.

Dear Friends,

Many thanks to steven,kapil, old school.. for their reply and to all those who were thinking over my problems.

My Problem has been solved and sharing the solution with you.
==========================================
Problem has been identified at Router end. There is a problem of transfering packet larger than 1468 byte over the link between the router connected to my Server and core router.

Thanks once again

Prakash.