Skip to content

Instantly share code, notes, and snippets.

@antonybudianto
Created November 23, 2015 00:39
Show Gist options
  • Save antonybudianto/b3feae255b12935f4e12 to your computer and use it in GitHub Desktop.
Save antonybudianto/b3feae255b12935f4e12 to your computer and use it in GitHub Desktop.
#!/bin/bash
ID_RSA="$OPENSHIFT_DATA_DIR/.ssh/id_rsa"
KNOWN_HOSTS="$OPENSHIFT_DATA_DIR/.ssh/known_hosts"
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $ID_RSA $1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment