Created
September 21, 2016 14:38
-
-
Save samdods/576d25e331b3cd58e6b5e65332773cb2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SSHDIR=~/.ssh | |
BKPDIR=$SSHDIR/bkp`date "+%Y%m%d%H%M%S"` | |
mkdir $BKPDIR | |
cp $SSHDIR/id_rsa $BKPDIR | |
cp $SSHDIR/id_rsa.pub $BKPDIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment