Networking Forums

Networking Forums > Computer Networking > Linux Networking > How do I find out my address so I can ssh from outside

Reply
Thread Tools Display Modes

How do I find out my address so I can ssh from outside

 
 
dbd
Guest
Posts: n/a

 
      12-02-2003, 11:17 PM
Hi,
Short, but probably very stupid question:
I am on a LAN, running sshd, people on the LAN can connect using ssh,
but I can't find out my address so that people can ssh me via the net.
I know my IP on the lan, my ip on the net, and my computer name (from
console [userName@compName userName]), I have tried many combinations
of these but I seem to find me to ssh from outside, how do I do this?
Thanks
dbd
 
Reply With Quote
 
 
 
 
P.T. Breuer
Guest
Posts: n/a

 
      12-03-2003, 12:20 AM
dbd <(E-Mail Removed)> wrote:
> Short, but probably very stupid question:


Yep.

> I am on a LAN, running sshd, people on the LAN can connect using ssh,
> but I can't find out my address so that people can ssh me via the net.


What do you mean? You only have the addresses that you can see via
/sbin/ifconfig! No more and no less.

> I know my IP on the lan, my ip on the net, and my computer name (from


What do you mean? You only have the IPs that you can see via
/sbin/ifconfig!

> console [userName@compName userName]), I have tried many combinations
> of these but I seem to find me to ssh from outside, how do I do this?


What?

Now, what I *imagine* is happening, and you haven't said, is that you
are on a local net in a non-routable range, such as 192.168.1.0. Or
10.0.1.0. In that case, you don't have an IP address on the internet.
Your connection to the net likely depends on the good graces of the
gateway machine, which is likely forwarding packets from you to the net
and adding a special "source port" indicator to them, so that when
answers come back, it can recognise that they're really meant for you,
and forward them on to you.

But you can't do a thing to allow people to initiate outside connections
to you! How is the gateway machine supposed to know that a random
incoming packet is really for you, when it's directed at it?

The best you can do is open a VPN to a cooperating server on some
outside machine.

Now, if that's not your situation, you'll have to pony up some data
instead of the vague nonsense you spouted above. It may be possible to
contact you from outside, but we can't tell if or how unless you make
with data.

Peter
 
Reply With Quote
 
Leon.
Guest
Posts: n/a

 
      12-03-2003, 12:40 AM

"dbd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi,
> Short, but probably very stupid question:
> I am on a LAN, running sshd, people on the LAN can connect using ssh,
> but I can't find out my address so that people can ssh me via the net.
> I know my IP on the lan, my ip on the net, and my computer name (from
> console [userName@compName userName]), I have tried many combinations
> of these but I seem to find me to ssh from outside, how do I do this?
>



Its the "IP on the internet" that they need.

Perhaps its firewalled off so it wont work at all.
Or perhaps sshd is configured to only accept local connections.




 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      12-03-2003, 01:38 AM
P.T. Breuer wrote:

> Now, what I imagine is happening, and you haven't said, is that you
> are on a local net in a non-routable range, such as 192.168.1.0. Or
> 10.0.1.0.


Actually, those addresses are just as routable as any other. The difference
is that they're supposed to be blocked from reaching the internet. Many
companies use and route addresses in those ranges.

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
 
Reply With Quote
 
Llanzlan Klazmon The 15th
Guest
Posts: n/a

 
      12-03-2003, 02:40 AM
(E-Mail Removed) (dbd) wrote in news:5216c33a.0312021617.1e461021
@posting.google.com:

> Hi,
> Short, but probably very stupid question:
> I am on a LAN, running sshd, people on the LAN can connect using ssh,
> but I can't find out my address so that people can ssh me via the net.
> I know my IP on the lan, my ip on the net, and my computer name (from
> console [userName@compName userName]), I have tried many combinations
> of these but I seem to find me to ssh from outside, how do I do this?
> Thanks
> dbd


If your PC has a address like 192.168.x.x or 10.x.x.x (some other ranges
too) then devices on the internet can't talk to it directly. You would
have to modify your Internet Gateway/Firewall/Router to either NAT a
public address to your PC's private address or else do port forwarding.
Most firewalls would drop such incoming connections by default so you
would also have to add a firewall rule to permit the incoming connection.

Llanzlan.
 
Reply With Quote
 
Llanzlan Klazmon The 15th
Guest
Posts: n/a

 
      12-03-2003, 02:44 AM
James Knott <(E-Mail Removed)> wrote in
news:Q0czb.124495$(E-Mail Removed) t.cable.rogers.com:

> P.T. Breuer wrote:
>
>> Now, what I imagine is happening, and you haven't said, is that you
>> are on a local net in a non-routable range, such as 192.168.1.0. Or
>> 10.0.1.0.

>
> Actually, those addresses are just as routable as any other. The
> difference is that they're supposed to be blocked from reaching the
> internet. Many companies use and route addresses in those ranges.
>


Yes but they aren't routable via the internet. The BGP configurations
between ISP's etc will not allow those subnets.

Llanzlan
 
Reply With Quote
 
Jacob Westenbach
Guest
Posts: n/a

 
      12-03-2003, 06:27 PM
"dbd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi,
> Short, but probably very stupid question:
> I am on a LAN, running sshd, people on the LAN can connect using ssh,
> but I can't find out my address so that people can ssh me via the net.
> I know my IP on the lan, my ip on the net, and my computer name (from
> console [userName@compName userName]), I have tried many combinations
> of these but I seem to find me to ssh from outside, how do I do this?
> Thanks
> dbd


I will, from your question, presume that you are not the system
administrator of the LAN. It is extremely likely that this person has
installed one or more routers in the LAN, one of which acts as the gateway
to non-local networks. This is the box which presents the public IP to the
internet. It, or an accessory box, also acts a firewall to block unwanted
access to the local network from non-local networks. This is probably the
point at which inbound ssh attempts to your system fail. There are two
probable reasons: the ssh port (normally 22) is blocked by the firewall for
incoming traffic, or that port is already forwarded by the gateway to some
system other than yours.

The quick fix is to contact your system administrator.

JW


 
Reply With Quote
 
jack
Guest
Posts: n/a

 
      12-04-2003, 12:18 PM
Llanzlan Klazmon The 15th wrote:
> James Knott <(E-Mail Removed)> wrote in
> news:Q0czb.124495$(E-Mail Removed) t.cable.rogers.com:
>
>
>>P.T. Breuer wrote:
>>
>>
>>>Now, what I imagine is happening, and you haven't said, is that you
>>>are on a local net in a non-routable range, such as 192.168.1.0. Or
>>>10.0.1.0.

>>
>>Actually, those addresses are just as routable as any other. The
>>difference is that they're supposed to be blocked from reaching the
>>internet. Many companies use and route addresses in those ranges.
>>

>
>
> Yes but they aren't routable via the internet. The BGP configurations
> between ISP's etc will not allow those subnets.
>
> Llanzlan


Just a quick reminder: RFC1918, Section 3, second-last paragraph.


Sorry for boring You, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find the country for a given IP address ? Ken Philips Linux Networking 0 01-05-2008 09:28 AM
How do I find MAC address? louise Wireless Internet 10 03-04-2006 08:10 PM
How to find IP address Blair Windows Networking 7 12-16-2005 04:37 PM
How to find out ip address of ap joecov Wireless Internet 5 01-20-2005 05:44 PM
Find mac address but no TCP IP Anthony Waller Wireless Internet 15 01-18-2005 03:11 PM



1 2 3 4 5 6 7 8 9 10 11