Skip to content

instructions to get serveo (local copy) running on your local system.

License

Notifications You must be signed in to change notification settings

japharl/serveo_local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

serveo_local - no https

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:

  1. 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.)
  2. Create a small ($4 / month) ubuntu dropplet. (Optional https://m.do.co/c/674f3906831a referal link).
  3. ssh in to the box ( ssh as root, then use the ssh key you created or use the root password mailed to your account).
  4. In a terminal: sudo apt update ; sudo apt upgrade -y ; sudo apt dist-upgrade -y ; sudo apt autoremove -y ; sudo reboot
  5. create for a new domain on domains.google.com or similar. (eg. serveoish.com or similar).
  6. Create a wild card A record ( * ) for the domain above to point to the ip address created by digital ocean.
  7. wget https://storage.googleapis.com/serveo/download/2018-05-08/serveo-linux-amd64 -O serveo # This url is the 64 bit linux serveo.
  8. chmod 777 serveo
  9. ./serveo # Should result in an "failed to load private key" error message.
  10. ssh-keygen -t rsa -f ssh_host_rsa_key
  11. ./serveo --port=2222 -domain=serveoish.com # Should result in something like: 2019/09/08 19:15:02 Listening on :2222...
  12. Keep this window open while serveo runs. Or use nohup ./serveo --port=2222 -domain=serveoish.com &

In a client:

  1. 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
  2. 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:https://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.

About

instructions to get serveo (local copy) running on your local system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages