nsbin/old/kopiere_ssh_key
Nico Schottelius 844c1b8170 more cleanups
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-12-29 18:25:27 +01:00

9 lines
164 B
Text
Executable file

if [ $# != 1 ]; then
echo "`basename $0`: Host"
exit 1
fi
host="$1"
cat ~/.ssh/identity.pub | ssh $host "(mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys)"