transfering files via ssh-xfer hack

Today my friend Brian from high school (who now works at Apple) just showed me a cool ssh transfer tool, ssh-xfer. Haven’t tried it yet, but it looks as if it scratches a good itch on some of my Nagios deployments (e.g. quickly dropping nrpe.cfg on servers).

To test it out, SSH to the remote host, making sure agent forwarding is on. Then try:

ssh-xfer somefilehere.txt

The file should magically appear at your local ~/Desktop, or on your Windows desktop with the PuTTY patch. If you want a different path, edit the patch. You can also go

cat somefilehere.txt | ssh-xfer nametocallfile.txt


About this entry