sshpass
An ssh password provider. It works by creating a TTY, feeding the password into it, and then redirecting stdin to the ssh session. More information: <https://manned.org/sshpass>.
Install
- All systems
-
curl cmd.cat/sshpass.sh
- Debian
-
apt-get install sshpass
- Ubuntu
-
apt-get install sshpass
- Alpine
-
apk add sshpass
- Arch Linux
-
pacman -S sshpass
- Kali Linux
-
apt-get install sshpass
- CentOS
-
yum install sshpass
- Fedora
-
dnf install sshpass
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install sshpass
- Raspbian
-
apt-get install sshpass
- Dockerfile
- dockerfile.run/sshpass
- Docker
-
docker run cmd.cat/sshpass sshpass
powered by Commando
An ssh password provider. It works by creating a TTY, feeding the password into it, and then redirecting stdin to the ssh session. More information: <https://manned.org/sshpass>.
-
Connect to a remote server using a password supplied on a file descriptor (in this case, `stdin`):
sshpass -d 0 ssh user@hostname
-
Connect to a remote server with the password supplied as an option, and automatically accept unknown ssh keys:
sshpass -p password ssh -o StrictHostKeyChecking=no user@hostname
-
Connect to a remote server using the first line of a file as the password, automatically accept unknown ssh keys, and launch a command:
sshpass -f path/to/file ssh -o StrictHostKeyChecking=no user@hostname "command"
© tl;dr; authors and contributors