Skip to content

Instantly share code, notes, and snippets.

View craigmulligan's full-sized avatar

Craig Mulligan craigmulligan

View GitHub Profile
@craigmulligan
craigmulligan / access.sh
Created September 28, 2016 15:35 — forked from telphan/access.sh
Add public ssh key to a device
# [WARNING] Some of this commands may require root privileges
cd /home/root/.ssh/
chmod a+w authorized_keys
# One can just use copy/paste here. Replace key.public with your public key filename
xclip -i key.public && xclip -o > authorized_keys
chmod a-w authorized_keys