Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment Favourite sshisms (Score 1) 2362

My favourite ssh thing to do is database dump/import over ssh:

ssh user@remotehost 'psql "COPY mytable TO STDOUT"' | psql "COPY mytable FROM STDIN"

Remote device images are also win:

ssh user@remotehost 'dd if=/dev/hda1' > sdb.iso
mkdir -p /mnt/iso
mount -o loop sdb.iso /mnt/iso
ls /mnt/iso # Win!

Not to mention combining ssh tunnel with more ssh tunneling and then more ssh! Mmm, ssh. Almost as awesome as netcat. - shazow

Slashdot Top Deals

The bugs you have to avoid are the ones that give the user not only the inclination to get on a plane, but also the time. -- Kay Bostic

Working...