~/.ssh/config file can be very useful to configure settings for your ssh connections.
For example you may configure default
IdentityFile for a domain using.
I use trick for configuring multiple identities on Bitbucket server.
And you need to use
work.bitbucket.org when you want to ssh into them.
Bitbucket has wild card domain redirection, that’s why this works for Bitbucket.
For other domains, you may need to add an entry into
If you have configured your SSH server to use a different port instead of
22, lets say
You can force Password Authentication by using
This is my favourite of all.
This can be very useful for accessing a port behind a firewall, may be for database.
If you are using AWS EMR or Hortworks Sanbdox, then you will need access to more than one port through ssh.
-L command line option can be very lengthy, instead you could use
LocalForward directive in the
Author: Deepu Mohan Puthrote
This work by Deepu Mohan Puthrote is licensed under a Creative Commons Attribution 4.0 International License