Automate SSH passwords, SFTP, and tunnels from Windows command line
Inject SSH passwords non-interactively, run SFTP transfers with progress, and create TCP tunnels directly from Windows command lines using win-sshpass. The tool, created by chuccp, targets system administrators and DevOps engineers who need scripted remote access. It bundles password authentication, recursive SFTP, SCP/rsync-style syntax, and JSON output for automation pipelines. This fits automation-focused Windows environments that cannot rely on external UNIX layers.
What does win-sshpass accomplish in automated workflows?
win-sshpass accepts credentials non-interactively and runs SSH commands or file transfers without a manual prompt. It supports password and private-key authentication and can interact with ssh-agent, which lets scripts choose secure key-based access when needed. The tool also reads configuration files for multiple server profiles and emits structured JSON output intended for automation tooling and agent orchestration.
Does it affect system resources or require extra runtimes?
The executable is written in Go and runs as a single standalone binary with no external dependencies, so it does not require WSL or Cygwin. That design keeps installation simple and isolates runtime behavior to the process. Background transfers expose progress reporting, and SFTP recursion supports breakpoint-resume, which reduces repeated work when network interruptions occur.
Is it safe to use for automated credentials and production scripts?
The tool can accept passwords on the command line but the documentation warns that process lists may expose arguments, and it recommends environment variables or configuration files for credentials. It supports private keys and ssh-agent integration, and offers options for port forwarding and an interactive raw terminal mode for console tools, so administrators can limit password use and prefer key-based or agent-managed authentication.
Practical recommendation for automation on Windows
For administrators and DevOps professionals who need non-interactive SSH and SFTP on Windows, win-sshpass provides a compact, dependency-free implementation with JSON output for pipeline integration. Prefer key-authentication or configuration-file credentials to avoid command-line exposure. Recommended.





