-
Notifications
You must be signed in to change notification settings - Fork 52
qssh
Ulrich Berntien edited this page Mar 29, 2019
·
4 revisions
qssh - launch ssh without requiring a tty
qssh PASSWORD SSH_ARGUMENTS
qssh launchs ssh without requiring a tty. While ssh needs a tty for password input, qssh accepts the password as command line argument. qshh uses an ASKPASS script to launch ssh without requiring a password input on tty.
The arguments are:
- PASSWORD: The password for the remote host. If the password contains special characters like $, then a quoting like 'secrect$password' to prevent a shell command line substitution could be needed.
- SSH_ARGUMENTS: The second argument and optional all other arguments are passed to the ssh command. The arguments could be ssh options.
To call qssh with special characters in the password:
$ qssh 'my password' server.example.com
Attention: The password is stored in a script file in the $HOME directory. The file is removed after the ssh returns. While the ssh command runs the file including the password exists and is readable for the user account.