- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: SFTP hangs on connection...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 03:06 PM
тАО02-16-2011 03:06 PM
SFTP hangs on connection...
All I get is a "hang". So, I attempted to use DEBUG to get information. Attached is the result of:
$ sftp "-D 99" okna@ftp.affiniscape.com
As I do not have the source I do not know what to think about the log file. I have verified that the system does respond to Putty/SSH from a PC and get the message that it can not allocate a PTY, which is expected since we only expect to connect for file transfer. That is better than what we get from VMS/SFTP or even VMS/SSH - which also hangs.
Thanks folk!
Bill.
CCSS - Computer Consulting System Services, LLC
- Tags:
- sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 03:34 PM
тАО02-16-2011 03:34 PM
Re: SFTP hangs on connection...
That trace looks to me like the SYLOGIN or LOGIN is doing a SET TERMINAL/INQUIRE (or equivalent). It shouldn't be doing that for a non-interactive process.
Simple first check is to put "$ EXIT" at the top of both LOGIN.COM and SYLOGIN.COM.
Please check the whole LOGIN sequence and make sure it's conditionalised for different process modes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 04:24 PM
тАО02-16-2011 04:24 PM
Re: SFTP hangs on connection...
It does appear to send control characters during the login with SSH, things like clear screen and such, as it supports interactive userid and passwords. But you would expect SFTP to handle this or SSH from VMS - which also hangs...
CCSS - Computer Consulting System Services, LLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 04:59 PM
тАО02-16-2011 04:59 PM
Re: SFTP hangs on connection...
>But you would expect SFTP to handle this
>or SSH from VMS
No, I wouldn't!
Remember with SSH or any of the S(ecure) protocols, there are at least 2 processes involved. One to supervise the connection and perform the encryption/decryption, and the other to do the actual requested work.
The supervisor process runs under a strict protocol, and I would NOT expect it to accept random control characters in the data stream. For an interactive worker process, yes, it's acceptable, but not for a non-interactive one.
Until you've eliminated the extraneous control sequences from the connection, and shown similar symptoms, you cannot discount them as irrelevant.
If it's an OpenVMS system, both SYLOGIN and LOGIN should test F$MODE() and avoid interactive operations for non-interactive processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 05:38 PM
тАО02-16-2011 05:38 PM
Re: SFTP hangs on connection...
I have tested SFTP against the local host. It works and makes a connection.
CCSS - Computer Consulting System Services, LLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2011 05:41 AM
тАО02-17-2011 05:41 AM
Re: SFTP hangs on connection...
Since everything works on the local side, the best way to debug this is to get debugging information from the remote side. Telnet to port 22 reports
SSH-2.0-2.0
I don't know which implementation of SSH this is, so I don't know how to turn on debugging for it, or whether or not there is a separate mechanism for getting debug information from the SFTP server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2011 06:27 AM
тАО02-17-2011 06:27 AM
Re: SFTP hangs on connection...
Thanks.
Currently the HP support staff is looking at the situation. A couple tcpdump traces were run and each showed an issue where it appeared that the local ssh/sftp process sent a "malformed" packet so both sides are waiting. There is also additional indication that the ssh/sftp process has exited unexpectedly. Since the packet would not be expected to complete the circuit both sides are now "waiting". Not too good of a protocol point in my estimation, but...
So I am waiting on HP's additional review and possible forwarding to TCP/IP Engineering.
Will keep folks advised.
Bill.
CCSS - Computer Consulting System Services, LLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2011 12:07 AM
тАО02-21-2011 12:07 AM
Re: SFTP hangs on connection...
TCPIP$SSH_DEVICE:[TCPIP$SSH]TCPIP$SSH_RUN.LOG
containing the 'failed to allocate pty' message, for accompanying messages/error codes ...