in reply to Re: SFTP hangs (winxp)
in thread SFTP hangs (winxp)
I am not sure how to see debug info from the server; as it is a shared box (I am a guest, I don't control it), I suspect I can't.
I'd rather do this in perl; though if need be, I guess I can use putty batch scrips wrapped in backticks.
Thanks idsfa for any ideas.........
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: SFTP hangs (winxp)
by idsfa (Vicar) on Nov 09, 2003 at 17:01 UTC | |
Ask the sysadmin of the remote machine if they would be willing to set up a second sshd on another port with logging cranked up so that you can test. It's worth a shot. Otherwise, you need to step through to find the part that is breaking your code. Begin at the beginning. First, confirm that you can get Net::SSH::Perl working:
If that doesn't return the hostname (modulo any syntax errors ... I didn't test the code), then there is something wrong with the server. From there, step through the Net::SFTP code until you find the bit that breaks it. (extract follows)
Good luck bughunting ... My parents just came back from a planet where the dominant life form had no bilateral symmetry, and all I got was this stupid F-Shirt. | [reply] [d/l] [select] |
by rkg (Hermit) on Dec 07, 2003 at 14:12 UTC | |
Just getting around to trying your suggestion after a long delay. Thanks for the advice. After installing Net::SSH::W32Perl, I tried your test script. It logs in happily, then hangs at the "hostname" command, sort of like my original post. Any ideas, or do you think the problem is on the server side? ...and it hangs here. Here's the code
| [reply] [d/l] [select] |
by shenme (Priest) on Dec 10, 2003 at 05:26 UTC | |
TLSXPA: Login completed, opening dummy shell channel. TLSXPA: channel 0: new client-session TLSXPA: Requesting channel_open for channel 0. TLSXPA: channel 0: open confirm rwindow 0 rmax 32768 TLSXPA: Got channel open confirmation, requesting shell. TLSXPA: Requesting service shell on channel 0. TLSXPA: channel 1: new client-session TLSXPA: Requesting channel_open for channel 1. TLSXPA: Entering interactive session. TLSXPA: Sending command: date TLSXPA: Requesting service exec on channel 1. TLSXPA: channel 1: open confirm rwindow 0 rmax 32768Hey, just found rebuilt for AS 5.8.x. I'll see what happens if I _can_ uninstall Net::SSH::* and reinstall from his site. (sigh) | [reply] |
by shenme (Priest) on Dec 10, 2003 at 05:55 UTC | |
TLSXPA: Entering interactive session. TLSXPA: Sending command: date TLSXPA: Requesting service exec on channel 1. TLSXPA: channel 1: open confirm rwindow 0 rmax 32768 TLSXPA: input_channel_request: rtype exit-status reply 0 TLSXPA: channel 1: rcvd eof TLSXPA: channel 1: output open -> drain TLSXPA: channel 1: rcvd close TLSXPA: channel 1: input open -> closed TLSXPA: channel 1: close_read TLSXPA: channel 1: obuf empty TLSXPA: channel 1: output drain -> closed TLSXPA: channel 1: close_write TLSXPA: channel 1: send close TLSXPA: channel 1: full closed exit '0' stdout 'Tue Dec 9 23:28:44 CST 2003'I added Scott Scecina's repository as advised then moved the repository higher in the list that PPM3 was looking at, then uninstalled both Net-SSH-W32Perl and Net-SSH-Perl, then re-installed Net-SSH-W32Perl from his repository, and huzzah! And after reading his ERRATA.txt comments, where he said he'd modified Net::SFTP to understand to use Net::SSH::W32Perl, I uninstalled Net-SFTP and re-installed it. I retried the Net::SFTP test program. After figuring out that I needed to change the ls() call to my @files = $sftp->ls('.'); I was able to get it working too! Now... what did I want it for ... ? So long ago ... can't ... remember... | [reply] [d/l] |
by rkg (Hermit) on Dec 24, 2003 at 16:51 UTC | |
by Anonymous Monk on Nov 02, 2004 at 08:01 UTC | |