ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Reverse SSH

    Scheduled Pinned Locked Moved IT Discussion
    sshsshd
    1 Posts 1 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      For anyone who has never used it, reverse SSH is a wonderous thing. You can open a connection from a server behind a firewall and get access from the outside without needing to deal with port forwarding or anything complicated like that. From the "internal" server behind the firewall try a command like this...

      ssh -fN -R 7000:localhost:22 username@yourMachine-ipaddress
      

      Where...

      • 7000 is any unused TCP port on your server
      • username is the username on the unblocked server
      • ipaddress is the address of the machine that is unblocked

      From the unblocked server you can connect via a command like this...

      ssh localhost -p 7000
      
      1 Reply Last reply Reply Quote 2
      • 1 / 1
      • First post
        Last post