This is the 3rd usage of the -L switch from man ssh: -L port:host:hostport If you need to see more, you either need to open more tunnels on other ports or examine the other solutions that tunnel requests for all remote hosts through a proxy. Incidentally, this only works for a single host that you want to see locally. If you need (or want) to omit the port specifier, you will need to open the tunnel as root, since 80 is a "privileged" port (:80 you can just visit locally: To create a tunnel on my local box that allows me to browse to that remote page, I run locally: ssh -L 8080:192.168.1.2:80 then in a web-browser, I visit: This should work: ssh -L 8080::80 example, consider a remote box running ssh that can access this web-page, which I want to see locally: The example you provided is correct, but somewhat misleading. Login using your username and password and you should be presented with your shell prompt. Now open up your web browser, and navigate to ' You should be able to see a web-based SSH terminal. Now let’s verify whether Shellinabox is running on port 4200 using “netstat” command. Once you’ve done with the configuration, you can start the service $ sudo service shellinaboxd start # if you want to restrict access to shellinaboxd from localhost only # specify the IP address of a destination SSH server To install $ sudo apt-get install openssl shellinaboxīy default, shellinaboxd listens on TCP port 4200 on localhost.During installation a new self-signed SSL certificate automatically created under “/var/lib/shellinabox” to use HTTPS protocol. To exit the SSH tunnel, simply disable the SOCKS proxy within your browser.Įnsure that you have checked Universe Repository This will launch our SSH tunnel on port 8080 and route all traffic (securely) through the server at. Search Google for ‘my ip’ and take a look at what your IP address is now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |