SSH Magic

How many times have I seen people using SSH aliases to shorthand the long statements they need to type to login:

alias ssh-home="ssh -p 12345 znx@somelong.hostname.com"

Now whilst this eases the pain, you are missing some real magic that SSH can provide you! So lets get started:

Edit/Make the ~/.ssh/config

Host some
  HostKeyAlias somelong.hostname.com
  HostName somelong.hostname.com
  User znx
  Port 12345

Now what's that all about you say, well now the original long top line can be replaced with:

ssh some

How much easier do you need it to be?