- or download this
my $cmd = qq(ssh -qv $ssh_user\@$bkp_destination 'sed -i "s#.*$hostnam
+e#$skey#gI" /tmp/test.txt');
warn "Launching [[$cmd]]";
system($cmd) == 0 or die "Couldn't launch ssh connection via
+[[$cmd]]: $? / $!";
- or download this
debug1: pledge: network
debug1: Sending environment.
...
Transferred: sent 3312, received 2392 bytes, in 0.1 seconds
Bytes per second: sent 51671.7, received 37318.5
debug1: Exit status 0
- or download this
user@bkphost:/tmp$ cat test.txt
As123312123 asdasdadasqsef3w4rfweweweffwerfew
...
ssh-rsa AAAAB3NzaC1yc2 root@HOSTA
As123312123 asdasdadasqsef3w4rfweweweffwerfew