A much easier solution for those of us with grown up OSs is to add alias myserver='ssh -i ".privKey.file" [email protected]'
to our ~/.bashrc
file and start a new terminal session.
Then your login experience looks more like: myserver
A much easier solution for those of us with grown up OSs is to add alias myserver='ssh -i ".privKey.file" [email protected]'
to our ~/.bashrc
file and start a new terminal session.
Then your login experience looks more like: myserver
What happens when you have to change your IP on that server? Going to have to update the alias to the new IP :). If you use DNS, boom no change to make there, and the alias will just work without any changes. Gotta combine tricks to get best setup.
true dat... one additional trick I use is to keep a list of my server aliases in a 'servers' alias because i can't even remember all my shortcuts
I've been using Termius to do most of that for me. Allows me to group stuff which is quite useful.