How to set default username for SSH hosts

One day I got tired of entering


Because my username is the same on all the servers. So, what I did – I’ve created a file and added a default username for the servers:

$ cat ~/.ssh/config
CanonicalizeHostname yes
Host *
User mycoolusername

So, I can now connect to by using: ssh

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *