From 25f7b33bf43e4d7a049eb1f4885d24f24ac1dca9 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 30 Dec 2013 03:55:15 +0100 Subject: partly remove infest into .graveyard moving host-patch for beaglebone --- ship/src/deploy-ssh-keys | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ship/src/deploy-ssh-keys (limited to 'ship/src') diff --git a/ship/src/deploy-ssh-keys b/ship/src/deploy-ssh-keys new file mode 100644 index 00000000..7eedb2cb --- /dev/null +++ b/ship/src/deploy-ssh-keys @@ -0,0 +1,15 @@ +#!/bin/sh +#@info +#@strict +#@include core +cd $(dirname $0) +U="${1:-$(id -u -n)}" +H="$(grep "^$U" /etc/passwd | cut -d : -f 6)" +krebsdir=${krebsdir:-/krebs} + +info "deploying for user $U to $H/.ssh" +mkdir -p $H/.ssh + +cp -vr $krebsdir/infest/skel/home/.ssh/authorized_keys $H/.ssh +chown $U $H +chown -R $U $H/.ssh -- cgit v1.2.3