http://qs321.pair.com?node_id=391265


in reply to Using Perl to do SCP

Tried Net::SFTP?


Tradez
"Never underestimate the predictability of stupidity"
- Bullet Tooth Tony, Snatch (2001)

Replies are listed 'Best First'.
Re^2: Using Perl to do SCP
by Rhys (Pilgrim) on Sep 15, 2004 at 21:18 UTC
    Please remember, I'm using SCP to talk to a switch, not a server, so there isn't anything to accept an SFTP connection. I know it's all over port 22, but SFTP uses semantics that aren't available from this SSH service.

    Case in point:

    [user@mybox user]$ sftp Admin@10.11.12.62 Connecting to 10.11.12.62... Admin@10.11.12.62's password: Request for subsystem 'sftp' failed on channel 0 Couldn't read packet: Connection reset by peer

    --J