View previous topic :: View next topic |
Author |
Message |
brianahr Apprentice


Joined: 07 Oct 2004 Posts: 236 Location: USA
|
Posted: Thu Sep 01, 2005 6:24 pm Post subject: User specific 'hosts' file? |
|
|
I have a user acount on a unix system and I'd like to be able to ssh from that system to the box at my house, without having to remember my IP. Is there some equivalent of /etc/hosts that is specific to my user account (like ~/.hosts or something)? Thanks. |
|
Back to top |
|
 |
z3ro Apprentice

Joined: 16 Jun 2004 Posts: 261
|
Posted: Thu Sep 01, 2005 6:36 pm Post subject: Re: User specific 'hosts' file? |
|
|
brianahr wrote: | I have a user acount on a unix system and I'd like to be able to ssh from that system to the box at my house, without having to remember my IP. Is there some equivalent of /etc/hosts that is specific to my user account (like ~/.hosts or something)? Thanks. |
Not that I know of, but you could add a line to your .bashrc:
Code: | alias sshhome="ssh 0.0.0.0" |
Where 0.0.0.0 is the actual ip address you want to ssh to, your computer at home. Then just type "sshhome" on a bash shell. |
|
Back to top |
|
 |
|