WinSSH is a tool to run an SSH server as a non-privileged user on Windows machines.
- Embeds
sshd.exe,sshd_config,ssh_host_rsa_key, andauthorized_keysinto the binary and automatically extracts them when running. - Accepts a custom port with
-p(default: 2222) - Can run in foreground (
-D) or background (default) - Supports verbose/debug mode with
-v - Prints the PID when running in the background, so it can be stoped with something like
Stop-Process <PID>
I made a Makefile to automate the generation os the files needed and the building process.
To build the executable, simply run:
make.\WinSSH.exe [-p <port>] [-v] [-D]WinSSH will use your id_rsa private key to authenticate to the server, no passwords are needed.
To connect to the server, simply run:
ssh user@target -p 2222