diff options
author | Christian Pointner <equinox@helsinki.at> | 2010-04-13 12:36:54 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2010-04-13 12:36:54 (GMT) |
commit | 017434491c5a8049564a2cc408944ba404d2c52b (patch) | |
tree | 338fbd6b65e391880cc491e47ba911032708ecb1 | |
parent | 1d8b6833027e6d291ae40c2415245fa819ee4973 (diff) |
fixed ssh parameters
git-svn-id: https://svn.helsinki.at/rhimport/trunk@47 7c65635b-ec39-4f67-a626-873dbafdd612
-rw-r--r-- | rhimport.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rhimport.pm b/rhimport.pm index dc08479..35f9f53 100644 --- a/rhimport.pm +++ b/rhimport.pm @@ -193,7 +193,7 @@ sub import_single sub scp_put_file { my ($file) = @_; - my @cmd = ( 'scp', '-prqB' , '-i', $ssh_key_file, $file, "$ssh_user\@$ssh_host:$ssh_dir/" ); + my @cmd = ( 'scp', '-prqB', '-i', $ssh_key_file, $file, "$ssh_user\@$ssh_host:$ssh_dir/" ); my ($reader, $writer, $error ) = ( new IO::Handle, new IO::Handle, new IO::Handle ); $writer->autoflush(1); local $SIG{CHLD} = 'DEFAULT'; @@ -209,7 +209,7 @@ sub scp_put_file sub ssh_exec_command { my ($command) = @_; - my @cmd = ( 'ssh' , '-i', $ssh_key_file, "$ssh_user\@$ssh_host" , $command ); + my @cmd = ( 'ssh' , '-q', '-o', 'BatchMode', '-i', $ssh_key_file, "$ssh_user\@$ssh_host" , $command ); my ($reader, $writer, $error ) = ( new IO::Handle, new IO::Handle, new IO::Handle ); $writer->autoflush(1); local $SIG{CHLD} = 'DEFAULT'; |