diff options
Diffstat (limited to 'keys/add-ssh-keys.sh')
| -rwxr-xr-x | keys/add-ssh-keys.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keys/add-ssh-keys.sh b/keys/add-ssh-keys.sh new file mode 100755 index 0000000..b559e42 --- /dev/null +++ b/keys/add-ssh-keys.sh | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | cd "$( dirname "${BASH_SOURCE[0]}" )" || exit 1 | ||
| 4 | |||
| 5 | mkdir -p ~/.ssh | ||
| 6 | cat *.pub | sort -u > ~/.ssh/authorized_keys | ||
| 7 | chmod 600 ~/.ssh/authorized_keys | ||
