Software Engineer @Simpl · Author has 587 answers and 805.8K answer views · 6y ·
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.
- 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
- Host falcon
- HostName falcon.first.com
- Port 22000
- User joey
- IdentityFile ~/.ssh/falcon.key
Now you can ssh into falcon by just using: ssh falcon
This can save a lot of your time.
730 views ·
View upvotes
· 1 of 5 answers
Something went wrong. Wait a moment and try again.