Linux Teamviewer functionality, but for ssh only

10,838

What you need is called 'reverse SSH tunnel'. You establish an outgoing SSH session from your server to an outside machine, and then you connect from remote location to that outside machine which binds these two SSH sessions together, so you can reach your server.

There's a number of articles describing this setup, like Bypass Firewall and NAT with Reverse SSH Tunnel

Share:
10,838

Related videos on Youtube

Icapan
Author by

Icapan

Linux enthusiast, VoIP (Asterisk) professional

Updated on September 17, 2022

Comments

  • Icapan
    Icapan over 1 year

    I need to access some Linux server behind NAT (no ports forwarded), so I need to have something like "phone home" like Teamviewer has. There is no GUI, but somebody can log in through SSH and dictate a password if it is changing (like Teamviewer). SSH (port 22) is enough (I can tunnel ports through SSH if I need). Any suggestions? How safe is it?