Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In a local area network, there is no DNS service. I also have no permission to sudo.

In daily work, I frequently use SSH between some nodes. It is so troublesome to type ssh user@192.168.1.2 every time.

Is there any other way to bind aliases to IPs and make my SSH more convenient?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Create a Host stanza in your ~/.ssh/config that calls it whatever you like. See the ssh_config(5) man page for details.

Host thatoverthere
  HostName 192.168.1.2

...

$ ssh user@thatoverthere
share|improve this answer
    
Thank! I have solved it. ^_^ –  konjac Jun 14 '13 at 3:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.