Re: SSH connection through a router applying NAT



Marco wrote:

Hi,

I want to be able to connect to my home computer via SSH from
the outside.

The problem is that I am behind a NAT. Everybody in this building
has the same IP to the outside world. Communication within the
network works. I can ping and connect to other computers. However,
from the outside I am unable to reach my computer or even ping my
external IP address.

I have no access to the router which would enable me to redirect
incoming requests to a particular port to my computer.

Is there a possibility to set up access to my computer? If yes, how?
All instructions I have found suggest reconfiguring the router,
which is not possible in my case.

I am willing to provide additional information, just let me know
what.


Regards

Marco

I'm no expert but

Either the ssh executable, or sshd service can be made to initiate the
connection or to listen.

If you have 2 computers and each can't initiate a connection to each
other, then I suppose you'd need a third one you can both reach and
then you're fine.

But if one can initiate a connection to the other, then you can do it.

If you are unable to ping your home computer, from your work
computer(your work computer behind NAT that you don't control), then, I
don't think that's a NAT issue.

Can you for example do $nmap -P0 -p6423 yourhomecomputerip

Have you gone to an online port scanner while sitting at your home
computer to make sure your home computer's port is open and a server is
running there?

If you are trying to SSH to your home computer, then the only NAT you'd
need to work with, is on that home computer.




--

.



Relevant Pages

  • SSH - Relay?
    ... just ssh'ed in to my home computer from outside. ... post a connection request to a web page, those computers will see it, ... Then when it creates the reverse ssh tunnel, I can login to that system ... pay the extra for a static IP and the ability to run a web server. ...
    (Debian-User)
  • Re: ssh to my computer behind NAT
    ... ISP' NAT. ... Just open a ssh tunnel from your home computer to your office. ...
    (Fedora)
  • Re: SSH connection through a router applying NAT
    ... Given these constraints you CANNOT directly get to your home computer ... connection to someone on the outside and use that connection to tunnel ... is not behind NAT but is directly on the Internet. ... users of your dynamic address space with your OpenVPN data packets. ...
    (comp.os.linux.networking)
  • Re: ssh to my computer behind NAT
    ... ISP' NAT. ... Just open a ssh tunnel from your home computer to your office. ... there is a higher OSI level workaround -or another L4-, both also valid, ...
    (Fedora)
  • Re: SSH connection through a router applying NAT
    ... Marco wrote: ... I want to be able to connect to my home computer via SSH from ... The problem is that I am behind a NAT. ...
    (comp.os.linux.networking)