LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2008, 11:42 AM   #1
mikolaj.sowinski
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
SSH and no public IP


Hi!

Sorry if that problem was discussed before, but I'm really not very familiar with the terminology ( I'm now exploring advantages of SSH ) and I don't even now how to precisely express what I need.

I've got server that has NO PUBLIC IP address ( server <-> linksys router <-> local LAN ( no port forwarding possibility ) <-> Internet ).

My question is if it's possible to connect to my server from outside local LAN network? Maybe using SSH account ( for example on SDF? )?
 
Old 11-25-2008, 01:46 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Easily done using SSH reverse port forwarding. Read the howto here:

http://lericson.se/docs/reverse-port...rding-openssh/
 
Old 11-25-2008, 02:08 PM   #3
lseelbac
LQ Newbie
 
Registered: Feb 2008
Distribution: FC6,7,8 CentOS 4,5 Gentoo, RHEL 3,4,5
Posts: 3

Rep: Reputation: 0
If I'm reading your network "diagram" correctly, the solution above *might* work. What is the relationship between the local LAN and the internet? Private addressing? Router/firewall? It sounds like your linksys is sitting on some type of corporate network and that makes this dicey at best.
 
Old 11-25-2008, 03:52 PM   #4
mikolaj.sowinski
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
LAN is my local ISP where everybody has own IP in the local network ( so my router has one ).
 
Old 11-25-2008, 03:58 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you saying your router has a public IP or a private IP?

If it's a public IP, you should be able to forward port 22 on the router to the server and just ssh in.
 
Old 11-25-2008, 05:00 PM   #6
mikolaj.sowinski
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I mean that my router is "behind" LAN ( I can log in from computer in my ISP's network, but not from outside local LAN ), so I think that it's a private IP ( as far as I understand this term ).
 
Old 11-25-2008, 05:11 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It the router's ISP facing IP start with 10., 172.16. or 192.168, then it's private.
 
Old 11-26-2008, 10:53 AM   #8
mikolaj.sowinski
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, it begins with 192.168

I tired the solution mentioned by klearview, but I always get a warning:
Quote:
Warning: remote port forwarding failed for listen port 13337
The command was:
Quote:
ssh -N -f -R 13337:localhost:22 <my_username>@sdf.lonestar.org

Last edited by mikolaj.sowinski; 11-26-2008 at 10:57 AM.
 
  


Reply

Tags
ssh



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 11:15 AM
ssh public key authentication teacup Linux - Networking 4 11-27-2011 11:27 PM
need help with SSH private/public key taduser Linux - Security 2 04-02-2007 07:07 PM
SSH allow public keys only GATTACA Linux - Security 4 11-18-2006 02:34 PM
ssh using public key jkmartha Linux - Networking 1 05-04-2005 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration