diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-05-08 19:04:29 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-05-08 19:04:29 +0000 |
commit | 121a07343cc4cc2df594e99acc2bbb0128f4c359 (patch) | |
tree | 6acad380979e03481f577659531d5647392b2f24 /Link-Them-ssh | |
parent | f30478fcc1d70d853c5db7527a37689281ddec5c (diff) |
split out ssh linking
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@390 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'Link-Them-ssh')
-rwxr-xr-x | Link-Them-ssh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Link-Them-ssh b/Link-Them-ssh new file mode 100755 index 0000000..8de0f45 --- /dev/null +++ b/Link-Them-ssh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +cd "`dirname $0`" + +if ! [ -e "$HOME/.ssh/authorized_keys" ]; then + gpg --keyserver keyserver.noreply.org --recv 94C09C7F + if ! gpg --status-fd=1 --verify ssh/authorized_keys.asc | grep '\[GNUPG:\] VALIDSIG C5DED518FD5A040B3EE9615FCFF71CB3AFA44BDD'; then + echo "ssh authorized keys failed verification" >&2 + exit 1 + fi + umask 077 + [ -d "$HOME/.ssh" ] || mkdir "$HOME/.ssh" + cp ssh/authorized_keys $HOME/.ssh +fi |