ssh-keygen -t rsa
把 raspberrypi.local 換掉就可以了
cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi.local 'mkdir .ssh/ && cat >> .ssh/authorized_keys
https://www.jaredwolff.com/blog/passwordless-ssh-raspberry-pi/
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi.local 'mkdir .ssh/ && cat >> .ssh/authorized_keys
沒有留言:
張貼留言