4 ms·
I am an ~/.ssh/config user. I have all the servers I connect to organized and use a convention like this: Host $company-$project-$location-$server HostNam
by memco 8y ago
I am an ~/.ssh/config user. I have all the servers I connect to organized and use a convention like this:
Host $company-$project-$location-$server
HostName $IP
Host *$company*
# Gateway Settings
You can specify specific configs first, then have them waterfall down to general configs. This allows you to customize usernames, identity files, proxies etc. This file is known to fish autocompletions so I can just do `ssh` and use tab completions until I have all the pieces filled. I also use a socks proxy by specifying `-D $port` so I can access the server from inside Firefox with a network config (I use firefox solely for separate socks proxy access to avoid having to proxy all data in OSX system prefs. Not sure if Safari has that ability).