Serveo.net is a way to ssh and redirect ports on the internet. These are instructions to get your local copy of the serveo server application running, which is not depedent upon serveo.net.
On a server:
- Get a digital oceans account. (This is only the site I used; you can use your own virtual machine provider, like aws or similar, but you may need to perform additional configuration details not covered, such as firewall configuration or simlar.)
- Create a small ($4 / month) ubuntu dropplet. (Optional https://m.do.co/c/674f3906831a referal link).
- ssh in to the box ( ssh as root, then use the ssh key you created or use the root password mailed to your account).
- In a terminal: sudo apt update ; sudo apt upgrade -y ; sudo apt dist-upgrade -y ; sudo apt autoremove -y ; sudo reboot
- create for a new domain on domains.google.com or similar. (eg. serveoish.com or similar).
- Create a wild card A record ( * ) for the domain above to point to the ip address created by digital ocean.
- wget https://storage.googleapis.com/serveo/download/2018-05-08/serveo-linux-amd64 -O serveo # This url is the 64 bit linux serveo.
- chmod 777 serveo
- ./serveo # Should result in an "failed to load private key" error message.
- ssh-keygen -t rsa -f ssh_host_rsa_key
- ./serveo --port=2222 -domain=serveoish.com # Should result in something like: 2019/09/08 19:15:02 Listening on :2222...
- Keep this window open while serveo runs. Or use nohup ./serveo --port=2222 -domain=serveoish.com &
In a client:
- assume you have a web server installed. (If not, see https://jameshfisher.com/2018/12/31/how-to-make-a-webserver-with-netcat-nc/ and follow the how to make a persistant server step below , orrrr...: python -m SimpleHTTPServer
- ssh -p 2222 -R 80:localhost:8000 serveoish.com
You will see text like:
Warning: no TLS certificate available for benigne.serveoish.com. You won't be able to use HTTPS, only HTTP. Forwarding HTTP traffic from http://benigne.serveoish.com Press g to start a GUI session and ctrl-c to quit.
(Or use other appropriate ssh command here for a remote ssh tunnel or similar.)
To shutdown serveo server, just press control c in the server window.