I have a server at home running Ubuntu 18.04 LTS (normal local network, behind a router with firewall activated, no DMZ) and I wanted to be able to access it though ssh. You can think of it as a TeamViewer alternative for port redirection. What’s SSH?Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. Typical applications include remote command-line login and remote command execution, but any network service can be secured with SSH. – EnterPublic URLs for exposing your local web server.Spend more time programming. One command for an instant, secure URL to your localhost server through any NAT or firewall.They weren’t kidding. To set it up do the following:.
![]()
SSH Tunnel is a powerful encryption and tunneling program that supports SSH1 and SSH2. It has a very flexible port forward system that allows for the assignment of any local addresses (including changing ones like DHCP assigned) as well as remote port forwarding (given your provider supports/provides this feature). Pure python SSH tunnels. Usage scenarios. One of the typical scenarios where sshtunnel is helpful is depicted in the figure below. User may need to connect a port of a remote server (i.e. 8080) where only SSH port (usually port 22) is reachable.
Register at. Follow the steps on their “Getting started page”. There are 4 steps to follow. If you are in Ubuntu just run the following in the terminal to install. Both methods work just fine.sudo snap install ngrokAnd then specify your auth token form ngrok authtoken your-token3. Start ngrok on your ssh port. You can read more./ngrok tcp 224.
![]()
Access you server with ssh ssh [email protected] -p PORTwhere PORT is the port assigned by ngrok and YOURUSER is your user in the server.You can also check the port assigned at yourOptional: copy your ssh key to your server for a password-less accessI use ssh-copy-id as follows ssh-copy-id -p port -v 0.tcp.eu.ngrok.io -l userYou can read more about itOn Ubuntu ssh-copy-id is already installed. On Mac just run brew install ssh-copy-idFor more details about brew, read here(“HomebrewThe missing package manager for macOS (or Linux)”). In a few words, think of brew as a package manager for Mac (like snap, apt, rpm, etc).If you just want to get it installed open a terminal window and run /usr/bin/ruby -e '$(curl -fsSL ngrokngrok is free for up to 10 devices.
Their plans are in theirTheir free plan allows the following:. HTTP/TCP tunnels on random URLs/ports.
1 online ngrok process. 4 tunnels/ngrok process. 40 connections / minutewhich is enough for personal and demo uses.Enjoy!
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |