FS::SSH - Subroutines to call ssh and scp
use FS::SSH qw(ssh scp issh iscp sshopen2 sshopen3);
ssh($host, $command);
issh($host, $command);
scp($source, $destination);
iscp($source, $destination);
sshopen2($host, $reader, $writer, $command);
sshopen3($host, $reader, $writer, $error, $command);
Simple wrappers around ssh and scp commands.
Calls ssh in batch mode.
Prints the ssh command to be executed, waits for the user to confirm, and (optionally) executes the command.
Calls scp in batch mode.
Prints the scp command to be executed, waits for the user to confirm, and (optionally) executes the command.
Connects the supplied filehandles to the ssh process (in batch mode).
Connects the supplied filehandles to the ssh process (in batch mode).
Not OO.
scp stuff should transparantly use rsync-over-ssh instead.
ssh, scp, IPC::Open2, IPC::Open3