Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

choocroot's scratchpad

by choocroot (Friar)
on May 22, 2005 at 11:55 UTC ( [id://459335]=scratchpad: print w/replies, xml ) Need Help??

Here is a quick netcat replacement in Perl, for when you need to SSH through a hop host that does not have netcat but have a working Perl install:

In your `~/.ssh/config':

Host remote.example.net ProxyCommand ssh root@hop perl -MIO::Socket -e "'\$|=1;\$s=IO::Soc +ket::INET->new(shift);if(\$c=fork()){print while(read(\$s,\$_,1)>0);k +ill(2,\$c)}else{print{\$s}\$_ while(read(STDIN,\$_,1)>0)}'" %h:22
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found