File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3939
4040# ### SSH
4141if [ " $( 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
4244cat << EOF >> /etc/ssh/sshd_config
4345KbdInteractiveAuthentication yes
4446PasswordAuthentication yes
@@ -120,10 +122,12 @@ cp /home/pi/motion/conf/motion.service /etc/systemd/system/motion.service
120122systemctl daemon-reload
121123systemctl 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
124127echo " 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
128132sudo reboot
129133
You can’t perform that action at this time.
0 commit comments