You are not logged in.

#1 2009-12-05 20:32:00

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

SSH to my computer from off the network

Hi:

My current situation is this. I want to access my laptop (which is on, SSH is running) from my desktop using putty (windows).

I'm at school and my desktop is running off the wall ethernet while my laptop is running wireless off a standard router. As a result, my laptop has a generic ip a 192.168.0.xxx type thing, while my desktop has an ip that is of the sort used by my school network 137.xxx.x.xxx. Trying to ssh into the 192.168.0.xxx address from putty doesn't work as it can't find the host. How can I solve this?

Offline

#2 2009-12-05 21:33:08

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: SSH to my computer from off the network

Do you have access to the router? You need to port forward to the laptop and ssh to the router (which will follow the port forward rule).

Offline

#3 2009-12-05 23:22:19

MrBlueSky
Member
From: Florida
Registered: 2009-11-19
Posts: 11
Website

Re: SSH to my computer from off the network

Get the global IP of your desktop from http://whatismyip.com and try to ssh into that.

Offline

#4 2009-12-05 23:53:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: SSH to my computer from off the network

Also consider changing your default ssh port from 22 to something else, preferably five digits (e.g. 40231 or 22044 etc.)

Last edited by graysky (2009-12-05 23:53:55)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2009-12-06 16:16:28

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: SSH to my computer from off the network

you might also consider setting up a DNS to automatically track your external IP (since with almost all routers, it will be periodically changing)  there are several free services out there for this,
but i suggest dyndns.com, they've always worked well for me.  therefore instead of sshing to username@xxx.xxx.xxx (and always having to remember your ip address) you can pick something else like username@irocksohard.homelinux.org (for example) and ssh in to your home machine with ease and convenience.

oh yeah, and also make sure that your school's network hasn't blocked the ports for ssh, I know my school does.


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

Board footer

Powered by FluxBB