{ "name": "sshpass", "version": "1.10", "summary": "sshpass: types a password into ssh (or another program) that asks for one on its terminal, for scripts", "category": "network", "license": "GPL-2.0-or-later", "homepage": "https://sourceforge.net/projects/sshpass/", "source": { "url": "https://downloads.sourceforge.net/project/sshpass/sshpass/1.10/sshpass-1.10.tar.gz", "sha256": "ad1106c203cbb56185ca3bad8c6ccafca3b4064696194da879f81c8d7bdfeeda" }, "watch": {"kind": "index", "url": "https://sourceforge.net/projects/sshpass/rss?path=/sshpass", "regex": "sshpass-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/sshpass -V | has '^sshpass 1.10' && t=$(mktemp -d) && printf '#!/bin/sh\\nprintf \"bvs@nas password: \" > /dev/tty\\nread p < /dev/tty\\necho \"got $p\" > \"%s/out\"\\n' \"$t\" > \"$t/ssh\" && chmod +x \"$t/ssh\" && bin/sshpass -p 's3cret word' \"$t/ssh\" && has -x 'got s3cret word' < \"$t/out\" && printf 'from-a-file\\n' > \"$t/pw\" && bin/sshpass -f \"$t/pw\" \"$t/ssh\" && has -x 'got from-a-file' < \"$t/out\" && printf '#!/bin/sh\\nfor i in 1 2; do printf \"password: \" > /dev/tty; read p < /dev/tty; done\\n' > \"$t/ssh2\" && chmod +x \"$t/ssh2\" && { timeout 20 bin/sshpass -p wrong \"$t/ssh2\"; [ $? = 5 ]; } && echo 'sshpass 1.10: a password typed at a program prompt from -p and from -f; a second prompt reported as a wrong password (exit 5)'" }