/usr/sbin/sdm-autokeys is in sdm 0.4.1-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/bin/sh
# Copyright 2003, 2004 Vagrant Cascadian <vagrant@freegeek.org>.
# Licensed under the terms of the GNU General Public License,
# version 2 or any later version.
filename="$1"
shift
if [ -n "$1" ]; then
user="$1"
fi
shift
if [ -n "$1" ]; then
type="$1"
else
type="rsa"
fi
ssh-keygen -t $type -f $filename -N ""
mkdir -p /home/$user/.ssh/
cp $filename.pub /home/$user/.ssh/authorized_keys
chown -R /home/$user/.ssh/
chmod -R og-rwx /home/$user/.ssh/
echo "you should now edit the \
/home/$user/.ssh/authorized_keys file to restrict login to \
specific commands"
|