qssh - zMarch/Orc GitHub Wiki

qssh

Name

qssh - launch ssh without requiring a tty

Synopsis

qssh PASSWORD SSH_ARGUMENTS

Description

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.

Examples

To call qssh with special characters in the password:

$ qssh 'my password' server.example.com

Files

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.