I have a list of servers I often connect to, named like server001
, server002
... server999
. I don't want to store 1000 alias hardcoded with these server names. I also don't want to write a function and take the number as the argument.
Is there a way to make alias flexible such that it takes my command input
"server005
" and transforms it to the commmand "ssh username@server005.example.com
" without storing a list of hardcoded alias?
ssh server005
, you can probably do this with your.ssh/config
. – DopeGhoti Mar 19 '19 at 16:15