February 4, 2018

TIL: You can use SSH aliases for scp too

I don’t know how I haven’t figured this out earlier.

There are a couple of boxes I SSH into frequently. I defined SSH aliases to connect them rapidly without thinking about IPs, port numbers and usernames. I also scp to and from some of them from time to time, but I kept using the full syntax. Until one day, it became apparent:

I type a short command while thinking ‘could this work?’

scp ./myfile myserver:/tmp/myfile

Yep, it works. Thank you SSH guys. I love intuitive software. Even if I suck at intuiting.

© Ahmet Kun 2019