Why should ssh shell.example.com -p 2345 -l example be used when you can use ssh shell?
Create $HOME/.ssh/config file if it does not already exist. Populate it with the following data:
Host shell
User example
Hostname shell.example.com
Port 2345
That is it! You can now just
ssh shell.


2 comments:
According to 'man ssh' it should be $HOME/.ssh/config. If not, you will have to use ssh -F $HOME/.ssh/.config shell
You are right. I have edited the post. Thanks for pointing it out.
Post a Comment