Skip to content

Commit dfd85af

Browse files
author
K Meyer
committed
conf
1 parent 095560d commit dfd85af

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

conf/6.local.pgm

225 KB
Binary file not shown.

conf/6.local.xcf

644 KB
Binary file not shown.

raspi_prepare.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ fi
3939

4040
#### SSH
4141
if [ "$(tail -n 1 /etc/ssh/sshd_config )" != "ClientAliveCountMax 20" ] ; then
42+
sed -i -e 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
43+
sed -i -e 's/KbdInteractiveAuthentication no/KbdInteractiveAuthentication yes/g' /etc/ssh/sshd_config
4244
cat << EOF >> /etc/ssh/sshd_config
4345
KbdInteractiveAuthentication yes
4446
PasswordAuthentication yes
@@ -120,10 +122,12 @@ cp /home/pi/motion/conf/motion.service /etc/systemd/system/motion.service
120122
systemctl daemon-reload
121123
systemctl enable motion
122124

123-
ssh-keygen -t rsa -q -f "/home/pi/.ssh/id_rsa" -N ""
125+
126+
cat /home/pi/.ssh/id_rsa.pub
124127
echo "add this to https://github.com/settings/keys"
125128

126-
read -p "Press enter to reboot"
129+
echo "Press enter to reboot"
130+
read _
127131

128132
sudo reboot
129133

0 commit comments

Comments
 (0)