
إصدار ويندوز من http://sourceforge.net/projects/sshpass/
مشابه لـ https://linux.die.net/man/1/sshpass
لتشغيل sshpass، يجب تثبيت:
winget install xhcoding.sshpass-win32
scoop install sshpass
Usage: sshpass [ options ] command arguments
-h, --help show this help message and exit
-V, --version Print version information
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
خيارات كلمة المرور: بدون خيارات - سيتم أخذ كلمة المرور من stdin
-f=<str> خذ كلمة المرور لاستخدامها من ملف-d=<int> استخدم رقمًا كوصف ملف للحصول على كلمة المرور-p=<str> قدم كلمة المرور كوسيطة (غير آمن)-e يتم تمرير كلمة المرور كمتغير بيئة "SSHPASS"خيارات أخرى:
-P=<str> أي سلسلة يجب أن يبحث عنها sshpass لاكتشاف طلب كلمة المرور-v كن مفصلاً فيما تفعله-k تأكيد تلقائي لطلب 'هل أنت متأكد...' لمفاتيح المضيف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/