-
Notifications
You must be signed in to change notification settings - Fork 112
SSH: login with keys
roleo edited this page Jan 5, 2020
·
2 revisions
If you want to login to a ssh session using keys and not password prompt, follow this guide:
- Generate a key on your client device:
ssh-keygen -b 4096
- Login to your camera and create the file /home/yi-hack/.ssh/authorized_keys
touch /home/yi-hack/.ssh/authorized_keys
-
Copy your key form ~/.ssh/id_rsa.pub to /home/yi-hack/.ssh/authorized_keys using vi (copy and paste).
-
Correct the file permissions:
chmod 0600 /home/yi-hack/.ssh/authorized_keys
- Restart the cam:
sync
reboot -f
- If you want to disable the password login, edit /home/yi-hack/script/system.sh and add the option "-s" to dropbear.