You are not logged in.

#1 2011-08-27 02:51:08

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

[Solved enough] Trying to ssh, both addresses the same...

I had this working a couple years ago, but I ditched a computer and haven't tried since...

My laptop and desktop are on the same network but ifconfig brings up 127.0.0.1 for both computers.  Those are supposed to be different right?  I never had it working so I could type in the hostname (which would be nice), it was just always elias@something.0.0.something.  Is there something I need to do to /etc/hosts.allow?  I've always been bad with networking, what am I missing/what do I do?

Thanks!

Last edited by pw_f100_220 (2011-08-27 15:56:20)


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#2 2011-08-27 05:35:12

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [Solved enough] Trying to ssh, both addresses the same...

pw_f100_220 wrote:

My laptop and desktop are on the same network but ifconfig brings up 127.0.0.1 for both computers.

http://en.wikipedia.org/wiki/Loopback#V … _interface

Offline

#3 2011-08-27 05:51:49

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: [Solved enough] Trying to ssh, both addresses the same...

pw_f100_220 wrote:

My laptop and desktop are on the same network but ifconfig brings up 127.0.0.1 for both computers.  Those are supposed to be different right?

Are you only seeing the lo interface?  In that case, your network interface (e.g. eth0) isn't up.

Offline

#4 2011-08-27 15:53:19

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

Re: [Solved enough] Trying to ssh, both addresses the same...

Ah, eth0, lo,and wlan0 are all up, so I tried it with their full 192.168.etc. and it worked.  I just remembered doing a little address like 10.0.0.2 or .3.  So I saw the 127.0.0.1 and thought that was where to look.  So it's solved.  Thanks for your help!

Is there a way to have it so I can actually put my hostname so I don't have to look up the IP everytime?  I thought it was possible but everywhere I look people say it works or they just use the adress.


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#5 2011-08-27 17:02:44

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: [Solved enough] Trying to ssh, both addresses the same...

pw_f100_220 wrote:

Is there a way to have it so I can actually put my hostname so I don't have to look up the IP everytime?  I thought it was possible but everywhere I look people say it works or they just use the adress.

I'm not a specialist, but as far as I know you have the option to either put a line in /etc/hosts like (man hosts):

<ip-address> <hostname>

or, if it is for ssh, you can add a line to ~/.ssh/config like (man ssh_config):

Host <alias>
        HostName <ip-address>

Offline

Board footer

Powered by FluxBB