You are not logged in.

#1 2011-09-27 16:06:53

gopichand
Member
From: Bowling Green, KY
Registered: 2010-02-04
Posts: 31

[SOLVED] Remote Access to a home Arch system behind the router.

Hello,

I am trying to remotely access my home Arch system from school. I did try doing something and this is what I did:

1. Used DynDns and NO-IP to setup a free domain, I thought NO-IP script was easy to run so I tested this on NO-IP.
2. I then installed Openssh.
3. Then I have setup the Port forwarding on the router to point to my ssh port (change from 22).
4. I tried to ping, the domain name from NO-IP with no response.

What I want to ask is... is there any better way of doing this?
I dont need a desktop access, simple ssh should do for now.

Thank You
Gopi

Last edited by gopichand (2011-11-01 00:50:13)


Open your mind, use OpenSource!

Offline

#2 2011-09-27 16:21:17

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [SOLVED] Remote Access to a home Arch system behind the router.

Can you access the remote machine using IP address only?  I know that normally DNS also takes a bit to propagate, so depending on how long you waited that could be an issue.


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#3 2011-09-27 17:42:49

gopichand
Member
From: Bowling Green, KY
Registered: 2010-02-04
Posts: 31

Re: [SOLVED] Remote Access to a home Arch system behind the router.

I waited till the time, it said time-out/no-response. It took may be a couple of mins.
I tried only with IP, but It was not accessible either. I might have done something wrong, so wanted to know whether there are any other methods I can try.

Thanks for your reply lifeafter2am.

Last edited by gopichand (2011-09-27 17:43:13)


Open your mind, use OpenSource!

Offline

#4 2011-09-27 18:42:04

bneate
Member
Registered: 2005-08-21
Posts: 36

Re: [SOLVED] Remote Access to a home Arch system behind the router.

Is your router setup to respond to pings?  I know my system is setup for remote access (ssh and apache) which both work but my router is setup to reject ping messages so a ping fails. Have you tried just sshing into your box?

Offline

#5 2011-09-27 18:45:40

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: [SOLVED] Remote Access to a home Arch system behind the router.

can you acess ssh server from LAN side? i use Dyndns it works fine for me.


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#6 2011-09-27 18:46:28

gopichand
Member
From: Bowling Green, KY
Registered: 2010-02-04
Posts: 31

Re: [SOLVED] Remote Access to a home Arch system behind the router.

I have not checked whether my router was not accepting any pings.
I used my local ip to login via ssh from my android.


Open your mind, use OpenSource!

Offline

#7 2011-09-27 19:07:55

CPU Gastronomy
Member
From: Québec, Canada
Registered: 2010-12-29
Posts: 69

Re: [SOLVED] Remote Access to a home Arch system behind the router.

First thing first : What is the command (and parameters) you're using and what is the exact error message when you try to connect to your computer ?



Also, is your computer on a fixed ip address ?  Because if it's still on DHCP, the address will change after a certain time making your port forwarding on your router pointing to the bad address.

Is the ssh daemon running on your computer ?  Have you added it in the daemon array in /etc/rc.conf ?

Last edited by CPU Gastronomy (2011-09-27 19:09:24)

Offline

#8 2011-09-28 04:35:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: [SOLVED] Remote Access to a home Arch system behind the router.

Does your /etc/hosts.allow look like this:

ewaller@odin:~ 1214 %cat /etc/hosts.allow
#
# /etc/hosts.allow
#
sshd: all
# End of file
ewaller@odin:~ 1215 %

??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2011-09-28 05:20:44

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,546

Re: [SOLVED] Remote Access to a home Arch system behind the router.

ewaller wrote:

Does your /etc/hosts.allow look like this:
??

I believe hosts.allow is no longer used since tcp_wrappers support was dropped in July

Offline

#10 2011-09-28 05:30:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: [SOLVED] Remote Access to a home Arch system behind the router.

skunktrader wrote:
ewaller wrote:

Does your /etc/hosts.allow look like this:
??

I believe hosts.allow is no longer used since tcp_wrappers support was dropped in July

You seem to be right hmm  Where have I been?

To the OP. Have you tried this advice: https://wiki.archlinux.org/index.php/Se … shooting_2  ??

Also, you state you installed it... Do you start it?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2011-09-29 11:13:12

clearloon
Member
Registered: 2009-01-07
Posts: 79

Re: [SOLVED] Remote Access to a home Arch system behind the router.

Is there a chance your school blocks traffic on port 22?

Sorry - re-read your initial post. Have you tried routing traffic via a port that's unlikely to be blocked eg 443?

Last edited by clearloon (2011-09-29 15:32:13)

Offline

#12 2011-11-01 00:48:36

gopichand
Member
From: Bowling Green, KY
Registered: 2010-02-04
Posts: 31

Re: [SOLVED] Remote Access to a home Arch system behind the router.

OK, I have solved this by this process. Will work only if the router supports the DynDNS. I am assuming that you have created a DynDNS account, its free for 2 domains. I also had to make my computer use STATIC IP from my router, just specify any IP address outside the DHCP range.

1. On the router, add the details about the DynDNS account. On my Belkin Router, I had to go to Firewall -> DDNS -> DynDNS and give the details and also enable it.
2. By doing the above step, we don't have to install the client for DynDNS.
3. On the router again, setup the port forwarding, again (on my Belkin Router) go to Firewall -> Virtual Servers -> Add the IP and the port numbers, I had to use the same number for both the incoming and the private port, though for other routers the number can differ?
4. On the computer, I installed the openssh and then changed the login port to the one specified in the router for forwarding.
5. Make the router and ssh logins as safe as possible. I understand that opening the router is not safe so I have to warn you.

I can now login using my DynDNS domain name from anywhere woohoo!

Last edited by gopichand (2011-11-01 01:07:23)


Open your mind, use OpenSource!

Offline

Board footer

Powered by FluxBB