configure SSH to connect to host on nonstandard port, user

instead of doing


ssh customuser@hostname.com -p 12345

put some lines in your ~/.ssh/config file (create it if it doesn’t exist)


Host hostname.com
Port 12345
User customuser

save some keystrokes, now you can do


ssh hostname.com