Browsing articles from "October, 2011"

Equivalent of /etc/hosts File for Individual Users

Oct 17, 2011   //   by Gor   //   Technical  //  No Comments

I really like the ability to set up aliases in an /etc/hosts file. However, I’ve always wanted the same functionality when logged in as a regular user. (One can only edit the /etc/hosts file if root or with sudo permissions.)

Through a little research, I found it’s possible. Here are the steps:

vi ~/.ssh/config

Add:

Host myalias
Hostname my.real.hostname
User myusername

Save and close (shift + ZZ)

Set the permissions:

chmod 600 ~/.ssh/config

Test it:

ssh myalias

About Me Stuff

I'm a PHP and Node.js developer, MySQL and MongoDB database designer, web designer, programmer, WordPress developer, graphic designer, musician, and artist… located in Frederick, Maryland.

I am honored and blessed to be the bassist for the Frederick Church of the Brethren's Living Water worship band.

Living Water worships on Sunday mornings at 9:45.