Profile photo for Sudip Bhandari

One of the most useful ssh feature is ‘ssh configs’.

If you are on a linux machine and your daily job is to log into a bunch of servers and do some task then it might be little cumbersome to keep track of all the server IPs,ports, usernames, keys/passwords etc. That’s where you can use ssh config.

  1. ssh user@$ipAddress -p $portNumber -i $identityFile  

This can be pretty cumbersome if you have more than a handful of servers.

Enter, ssh configs.

This file is stored under ssh in your home directory i.e ~/.ssh/config

  1. Host falcon 
  2. HostName falcon.first.com 
  3. Port 22000 
  4. User joey 
  5. IdentityFile ~/.ssh/falcon.key 

Now you can ssh into falcon by just using: ssh falcon

This can save a lot of your time.

View 4 other answers to this question
About · Careers · Privacy · Terms · Contact · Languages · Your Ad Choices · Press ·
© Quora, Inc. 2025