Skip to content

xhcoding/sshpass-win32

Repository files navigation

sshpass-win32

Like https://linux.die.net/man/1/sshpass

Pre-Requirements

To run sshpass, you must install:

  • Windows 10 Insider build 17733 or later

Usage

Usage: sshpass [ options ] command arguments

    -h, --help    show this help message and exit

Password options: With no options - password will be taken from stdin
    -f=<str>      Take password to use from file
    -d=<int>      Use number as file descriptor for getting password
    -p=<str>      Provide password as argument (security unwise)
    -e            Password is passed as env-var "SSHPASS"

Other options:
    -P=<str>      Which string should sshpass search for to detect a password prompt
    -v            Be verbose about what you're doing

Examples

sshpass -p 12345 ssh [email protected] ls
sshpass -p 12345 rsync -avz -e 'c:/Users/xhcoding/scoop/apps/cwrsync/current/bin/ssh.exe' README.md [email protected]:/home/xhcoding/