If your are web developer who works on Windows, you can use sshreach.me to show your work in progress to your client or to test your web application's webhooks. You might also use sshreach.me to provide your clients technical support with VNC.
Windows does not support python and ssh out-of-the-box and there are some additional steps to take before you can run sshreach.me on Windows. Here's the quick overview of the steps:
pip install psutil
(Windows XP users should type pip install psutil==3.4.2
as newer versions of psutil do not work with Windows XP).
# for windows users: change these two values to match your settings
PLINK_PATH = 'c:\sshreachme' # folder where your plink.exe is located
PLINK_EXECUTABLE = 'plink.exe' # name of plink executable
Change PLINK_PATH
to the folder where you've downloaded your plink.exe to.
You can now start your python client script from command prompt with the following command: c:\python27\python.exe c:\YOUR_SSHREACHME_PATH\sshreachme.py c:\YOUR_SSHREACHME_PATH\private_key.ppk
Your client should now show as active in web interface. You should now start the tunnel which will get you the following prompt:
The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is.
The server's ssh-ed25519 key fingerprint is: ssh-ed25519 256 5c:a0:04:94:74:74:ab:91:90:59:2c:26:64:e8:73:ec
If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the connection.
Store key in cache? (y/n)
Type "y" to allow the connection to proceed and to add the key to your system.
Your connection is now configured. The only thing left is to set up your python script to start after os boot. The easiest way to do it is to make a .bat file (for this purpose use pythonw.exe instead of python.exe) and to create a shortcut in your startup folder.
Windows does not support python and ssh out-of-the-box and there are some additional steps to take before you can run sshreach.me on Windows. Here's the quick overview of the steps:
pip install psutil
in the command line.
# for windows users: change these two values to match your settings
PLINK_PATH = 'c:\sshreachme' # folder where your plink.exe is located
PLINK_EXECUTABLE = 'plink.exe' # name of plink executable
Change PLINK_PATH
to the folder where you've downloaded your plink.exe to.
You can now start your python client script from command prompt with the following command: python.exe c:\YOUR_SSHREACHME_PATH\sshreachme.py c:\YOUR_SSHREACHME_PATH\private_key.ppk
Your client should now show as active in web interface. You should now start the tunnel which will get you the following prompt:
The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is.
The server's ssh-ed25519 key fingerprint is: ssh-ed25519 256 5c:a0:04:94:74:74:ab:91:90:59:2c:26:64:e8:73:ec
If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the connection.
Store key in cache? (y/n)
Type "y" to allow the connection to proceed and to add the key to your system.
Your connection is now configured. The only thing left is to set up your python script to start after os boot. The easiest way to do it is to make a .bat file (for this purpose use pythonw.exe instead of python.exe) and to create a shortcut in your startup folder.
Since the introduction of Windows Subsystem for Linux in Windows 10, sshreach.me can also be used to expose a Windows service to the world using bash in Windows 10
%localappdata%\Lxss\rootfs or C:\Users\Username\AppData\Local\Lxss\rootfs
).python sshreach.me /path/to/your_private_key &
.