You are not logged in.

#1 2010-01-09 00:57:57

matthewbauer
Member
From: /usa/ks
Registered: 2009-07-20
Posts: 86

Get SSH access to laptop regardless of machine's connected network

Do any Arch users have tricks to do this?

I was thinking it would be possible to with Crontab and SSH tunneling like so (doesn't seem to work though):

ssh -N -L2001:localhost:22 bauer.dnsdojo.com

But I wanted to know if anyone is able to get over the problem of not knowing your machines external IP.


Libertarian Arch Linux User

Offline

#2 2010-01-09 01:11:07

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Get SSH access to laptop regardless of machine's connected network

Why not use something like dyndns or noip?


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2010-01-09 05:49:35

matthewbauer
Member
From: /usa/ks
Registered: 2009-07-20
Posts: 86

Re: Get SSH access to laptop regardless of machine's connected network

pyther wrote:

Why not use something like dyndns or noip?

Okay that's what I was looking for. But what if you share an external IP? Is there anyway to get around that?


Libertarian Arch Linux User

Offline

#4 2010-01-09 08:38:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Get SSH access to laptop regardless of machine's connected network

Then you configure your router to forward specific ports to specific machines, and connect using ssh's -p flag.

Offline

#5 2010-01-09 21:39:40

matthewbauer
Member
From: /usa/ks
Registered: 2009-07-20
Posts: 86

Re: Get SSH access to laptop regardless of machine's connected network

But what if I'm not the admin of the network, just using it? I'm thinking this is impossible.


Libertarian Arch Linux User

Offline

#6 2010-01-09 21:51:20

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Get SSH access to laptop regardless of machine's connected network

Maybe you could ask the admin to open a port for you?


Website - Blog - arch-home
Arch User since March 2005

Offline

#7 2010-01-09 22:35:26

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Get SSH access to laptop regardless of machine's connected network

If you are behind a NAT gateway, you don't control, your options are limited if they won't forward a port for you. You could use a reverse SSH connection[1]. If the connection tends to drop out it may be a problem. A cronjob to check the connection every now and then and recreate it if needed might work. If you have access to an external machine a VPN might be better. Your laptop would be the client and connect to the external machine, you would ssh to the external machine and then onto your laptop.

[1] http://www.vdomck.org/2005/11/reversing … ction.html

Offline

#8 2010-01-09 23:59:12

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: Get SSH access to laptop regardless of machine's connected network

@matthewbauer: Look there: http://samy.pl/chownat/ .

Offline

#9 2010-01-10 00:48:07

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

Re: Get SSH access to laptop regardless of machine's connected network

knedlyk wrote:

@matthewbauer: Look there: http://samy.pl/chownat/ .

That's pretty amazing stuff right there...


neutral

Offline

#10 2010-01-22 02:44:36

silvik
Member
From: Bucharest/Romania
Registered: 2006-11-08
Posts: 110

Re: Get SSH access to laptop regardless of machine's connected network

hamachi is the easiest solution IMO

Offline

Board footer

Powered by FluxBB