I love SSH. SSH is the de-facto service for remote server management, especially in a CLI environment.
Being a avid Linux user, and spending quite a bit of time on OSX lately, I often SSH into several servers remotely. Being subject to “username conventions”, you don’t always share the same username across machines. And I always wondered how one could just type ssh hostname instead of providing the username.
Seems that, by creating a .ssh/config
file with following contents:
Host server.example.com server
User username
WIll make life easier, as you can in the future only do a “ssh hostname”. I didn’t know this.
Leave a Reply