Skip to content
/ WinSSH Public

WinSSH is a tool to run an SSH server as a non-privileged user on Windows.

Notifications You must be signed in to change notification settings

NLXZ/WinSSH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

WinSSH

WinSSH is a tool to run an SSH server as a non-privileged user on Windows machines.

Features

  • Embeds sshd.exe, sshd_config, ssh_host_rsa_key, and authorized_keys into 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>

Build

I made a Makefile to automate the generation os the files needed and the building process.

To build the executable, simply run:

make

Usage

.\WinSSH.exe [-p <port>] [-v] [-D]

Connection

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

About

WinSSH is a tool to run an SSH server as a non-privileged user on Windows.

Resources

Stars

Watchers

Forks