Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User specific 'hosts' file?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
brianahr
Apprentice
Apprentice


Joined: 07 Oct 2004
Posts: 236
Location: USA

PostPosted: Thu Sep 01, 2005 6:24 pm    Post subject: User specific 'hosts' file? Reply with quote

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
View user's profile Send private message
z3ro
Apprentice
Apprentice


Joined: 16 Jun 2004
Posts: 261

PostPosted: Thu Sep 01, 2005 6:36 pm    Post subject: Re: User specific 'hosts' file? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum