Skip to content

Instantly share code, notes, and snippets.

View hyfather's full-sized avatar

Nikhil Mungel hyfather

View GitHub Profile
@hyfather
hyfather / ssh-copy-id
Created June 9, 2011 11:11 — forked from achamian/ssh-copy-id
Copy public key to authorized_keys
#!/usr/bin/env sh
# Copy public key to authorized_keys of a remote machine
if [ -z $1 ];then
echo "Usage"
echo "ssh-copy-id hostname /path/to/public/key"
exit
fi
if [ -z $2 ]; then
KEYCODE=`ssh-add -L`