Passing the SSH password on the commandline ------------------------------------------- To get this to work you need a .sh and a .pl script: $ cat echo_pass #!/bin/sh echo p4ssword $ chmod a+rx echo_pass $ cat setsid.pl #!/usr/bin/perl use POSIX(setsid); if(fork()) { wait; } else { setsid; exec {$ARGV[0]} @ARGV; } $ chmod a+rx setsid.pl $ DISPLAY=y SSH_ASKPASS=./echo_pass ./setsid.pl ssh user@host