You are not logged in.

#1 2010-08-25 01:52:45

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

SSHing into my home Arch box isn't working?

First, I live in apartment building with free LAN in each room. I know there's a router type box near the elevator because I manually reset it a few times when there were errors and no one in the apartment was going to fix it.

I am not sure how it changes our IP addresses and I am unsure which IP to use when I use the ssh command.

I looked at my standard IP, the one websites see etc. I used this:

ssh username@ipaddress

and it times out. I tried ssh -p port username@ipaddress and it times out.

I checked the actual settings on the network it says this about my ip:

IPv4 Address: 192.168.0.14

That IP is different from my standard IP. Which should I be using to connect to the the Arch box? Why am I timing out?

I can ssh into myself with this:

ssh username@127.0.0.1

and it works fine.

Last edited by Google (2010-08-25 01:55:10)

Offline

#2 2010-08-25 01:57:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: SSHing into my home Arch box isn't working?

If you're using dhcp and not static IP different boxes will get different IPs every now and then.

Offline

#3 2010-08-25 01:59:14

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: SSHing into my home Arch box isn't working?

I have checked my IP every once in a while and my ip appears to be the same. I am not sure about the IPv4 Address: 192.168.0.14 because I never checked to see if that changes. I ran http://www.whatsmyip.org/ and that IP never seems to change, and that is the one I have been trying to use for ssh.

Offline

#4 2010-08-25 02:17:17

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: SSHing into my home Arch box isn't working?

There are several thing at play here.
1. Have you set up your Arch box to accept ssh connections from the address range of 192.168.0.x?
If you have not done that, and your address changes you are out of luck.
2. Do you have a firewall in your Arch box? If you do you must allow the same range of access.

BTW. Ideally you do not want to give access to the range but to your specific IP, but since in your case it can change you do not seem to have many options.

R.

Offline

#5 2010-08-25 02:30:03

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: SSHing into my home Arch box isn't working?

I have given my hosts.allow

sshd: ALL

That should cover it? I don't use a firewall. I could try connecting from specific IPs, but I use my phone to ssh and my work PC. Both of which have changing IPs.

Offline

#6 2010-08-25 02:32:43

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: SSHing into my home Arch box isn't working?

If you're trying to ssh with the external ip (the one that sites see as you say) i think you need to allow the connections in some file like hosts. I know it is in a wiki somewhere. This way you can access the pc in any place in the world.
But if you just want to ssh from another room in the house as i understand you need to use the internal ip given to you by the dhcp, IPv4 Address: 192.168.0.14, this one for now as you say.

If there are other problems maybe the router is blocking some traffic in the network.

EDIT: too late, someone beat me up to it xD.
Probably the router is acting like a firewall.

Last edited by Diaz (2010-08-25 02:35:27)

Offline

#7 2010-08-25 02:37:45

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: SSHing into my home Arch box isn't working?

I need the external one and I thought that hosts.allow's sshd: ALL was the line needed to allow any ip to connect to the ssh daemon. However it times out. I may have to run through everything again to make sure I didn't look over something.

edit:
If the router is doing that, is there any solution?

Last edited by Google (2010-08-25 02:38:18)

Offline

#8 2010-08-25 04:19:31

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: SSHing into my home Arch box isn't working?

Google wrote:

I have checked my IP every once in a while and my ip appears to be the same. I am not sure about the IPv4 Address: 192.168.0.14 because I never checked to see if that changes. I ran http://www.whatsmyip.org/ and that IP never seems to change, and that is the one I have been trying to use for ssh.

This would work if the router is forwarding the port to your computer. If you don't have access to the router then how can you forward the port?


neutral

Offline

#9 2010-08-27 19:22:22

xc1024
Member
Registered: 2009-11-10
Posts: 51

Re: SSHing into my home Arch box isn't working?

If the SSH server is behind NAT and you're outside, you need to port forward. Or make the server try to estabilish a reverse connection somehow. It's possible with VNC, so maybe SSH can do it as well.

Offline

Board footer

Powered by FluxBB