You can also use ssh shorthands in ~/.ssh/config
- 0 Posts
- 3 Comments
Joined 2 years ago
Cake day: October 6th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
With the added benefit of it looking like you’re yelling at your prompt in order to get it to use sudo.
We almost have the same setup then, I use
ssh_hostnames=$(grep "^Host " ~/.ssh/config | awk '!/*/ {print $2}') for host in $ssh_hostnames do alias $host="ssh $host" done
in my .bash_aliases to parse the ~/.ssh/config file and cut off the 'ssh ’ part automatically for every Host I have in there.