Setup
- Raspberry Pi outfitted with 64-bit Ubuntu Server 23.10 USB-SSD
- MacBook and rPi are on the same LAN
- rPi LAN IP address verified with
ifconfig
Issue
- From MacBook:
ssh ubuntu@192.168.8.253
returns:Permission denied (publickey)
Procedure tested
- https://www.tecmint.com/ssh-permission-denied-publickey/
- Edit ssh file:
sudo vi /etc/ssh/sshd_config
- enable Password authentication:
- restart SSH service:
sudo systemctl restart ssh
- attempts to login return the said error message
sudo systemtl status ssh
returns active (running), but disabled- NEW:
sudo systemctl enable ssh
results:
QUESTIONS
- What steps are needed to remedy the error?
Tests
sudo systemctl reload ssh
did not solve the issuessh -vvvv ubuntu@192.168.8.253 > diagnostic.txt
fails to pipe output to .txt file- Photograph of what should have been in diagnostic.txt:
pi.local
or something similar? Doessystemctl status ssh.service
say that sshd is active? If you have all these correct run the commandssh -vvvv pi_username@Pi_IP.Address
and copy and paste the output in your question ascode
. You may want to add the answers to all these questions in your question above. – user68186 Dec 06 '23 at 22:16ssh-keygen
to generate a key for the host system? – Terrance Dec 06 '23 at 22:18ssh-keygen
on the Pi side. – Terrance Dec 06 '23 at 22:49openssh-server
on that system. – Terrance Dec 06 '23 at 23:08sudo ssh ubuntu@192.168.8.253
. If so don't usesudo
. You should select all the text in the terminal using your mouse, then right click and copy the text. Paste the text in your question. Is your MacBook running Ubuntu? The photo of the terminal seems to suggest that. Add that information in your question. – user68186 Feb 28 '24 at 19:22