Parobalth
  • Home
  • Categories
  • Tags
  • Archives

ssh: short host names

I found an explanation how to abbreviate host names for ssh connections. It can be found here.

So basically you add these lines to .ssh/config:

Host foo
HostName IP-adress-of-server

Now you can connect with:

ssh foo

if you have the same username on host and client or

ssh user@foo

to use a certain username.


If you have any questions, suggestions, thoughts and comments please feel free to email me.


License of this blog post:

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


Published

Aug 13, 2016

Category

Computer

Tags

  • ssh 3

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor