4 ms·
I created aliases in .bashrc. For instance, instead of 'ssh -i [key] user@devenvurl' I aliased it to 'ssh-dev'
by cabaalis 8y ago
I created aliases in .bashrc. For instance, instead of 'ssh -i [key] user@devenvurl' I aliased it to 'ssh-dev'
- superdaniel 8y agoI believe this can also be done in your ssh config file which would confer the added benefit of having the alias available to scp and rsync.
- objectivetruth 8y agoIf you put definitions in ~/.ssh/config instead, you can just "ssh dev" and that way you can also "scp dev:/file ." and other fun stuff. https://linux.die.net/man/5/ssh_config https://linux.die.net/man/5/ssh_config