Skip to content

xhcoding/sshpass-win32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Install

Winget

winget install xhcoding.sshpass-win32

Scoop

scoop install sshpass

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
    -k            Auto confirm 'Are you sure...' prompt for host keys

Examples

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

About

Windows version of http://sourceforge.net/projects/sshpass/

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors