Skip to content

Instantly share code, notes, and snippets.

@fapestniegd
Created August 17, 2009 00:30
Show Gist options
  • Save fapestniegd/168822 to your computer and use it in GitHub Desktop.
Save fapestniegd/168822 to your computer and use it in GitHub Desktop.
# code
print STDERR "ssh -o StrictHostKeyChecking=no root\@$self->{'ipaddress'} $remote_command\n";
system qq(ssh -o StrictHostKeyChecking=no root\@$self->{'ipaddress'} \'$remote_command\');
# output
ssh -o StrictHostKeyChecking=no [email protected] umask 377 && echo oHkKEaSbmEKmcYEG > /etc/ldap/ldap.secret
Warning: Permanently added the RSA host key for IP address '174.129.2.73' to the list of known hosts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment