xuedi 的 blog
A BLUG Spammers BLOG

temp scp alias

Quite often i am sitting with someone in some cafe working and ‘just’ want to copy a file over … even though we can today send bits and bytes all over the world, the communication of two people next to each other failing on stupid simple reasons quite often (no net-cat installed, samba not configured, nfs modules missing, someone remember the hassle of serial dialog cables ^^) well, the point i try to make here is that for me the most simple and fast is still ssh.

But, with the situation to freelance in changing cafe places and just shortly here and there send some files to different people my .ssh/known_host file grow to about 120 entrys. I can not recall (trust) any of them, so the point of the warning at a man-in-the-middle attack is useless …

I was searching for quite some time (read here and there a few lines of the manual) for a simple –no-host-check option for ssh. Now i found it:


alias mscp='scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'

It is very convenient to have a guest user (no bash / login, with password) account on the system, so you just do sshd->start … then: mscp (mobile-scp) and there is your file … sshd->stop

Cheers
xuedi

Leave a Comment