Issue with SSH over USB
(1) By Enrique Haro (enriqueharo) on 2022-07-04 04:53:54 [link] [source]
Hi there. I am having issues logging in into my new Raspberry Pi Zero 1.3 over USB I checked the last post on this topic (https://tangentsoft.com/pidp8i/forumpost/90eb248cfb) , and yes, I have read the proverbial 'read.me' file, but I can't make it work.
My initial approach was to follow the read.me file. I flashed the 'pidp8i-2021.02.14-nls-buster-lite.img' file into my SD Card, logged in with a keyboard/monitor and changed the password (as directed in the file). Once that this was done, I run the 'sudo dpkg-reconfigure openssh-server' to recreate the SSH Keys, and shutdown the Raspberry Pi to remove the keyboard/monitor. Everything looks good, including SIMH.
Connecting it to my Mac in gadget-mode, shows that the Raspberry Pi is visible using 'ping raspberry' and 'ping raspberrypi', but it is not visible with 'ping raspberrypi.local'
Checking in multiple sites, I see that they all discuss the changes to the config.txt, cmdline.txt and also adding the ssh file in the boot partition. Initially I did not consider these, given that the read.me' file says that SSH is enabled by default. In any case, I also tried with these changes but with no positive results.
Some sites also include 'ssh-keygen -R raspberrypi.local' to be run in the Mac before 'ssh pidp8i@raspberrypi', I tried with and without it. I get 'Host raspberrypi.local not found in /Users/enriqueharo/.ssh/known_hosts'
I am sure I am missing something. Any ideas? How do I make my Mac aware of the required keys to login into the Raspberry Pi?
Thx in advance.... enrique
(2) By Warren Young (tangent) on 2022-07-04 12:25:09 in reply to 1 [link] [source]
it is not visible with 'ping raspberrypi.local'
That's a matter of local DNS configuration, which is way outside the scope of this project. It may even be off-topic on Raspberry Pi forums. Your local choice of DNS servers, routers, firewalls, and more can affect whether this works and how, but I can't advise you on any of that. Not only do I believe you wouldn't reconfigure your network's name resolution schemes to suit me if I did offer such advice, I don't believe you should do so. It's your decision; go do your research, then decide.
If SSH works by IP, that's the end of our involvement here. Anything else you want atop that, you need to see to it yourself.
changes to the config.txt, cmdline.txt and also adding the ssh file in the boot partition
None of that should be required merely to get SSH working, but I'm not in a position to be critiquing advice found on "multiple sites" even if you provided a list, rather than leave it unspecified, as you have done.
Any ideas?
Run ssh -vvv pidp8i@192.168.19.68
where the last bit is the actual IP address of your Pi.
If that works, you're done as far as this site is concerned: anything else is a matter of your local LAN configuration.
If it fails, post the output inside a fenced code block.
(3) By Enrique Haro (enriqueharo) on 2022-07-04 19:20:19 in reply to 2 [link] [source]
Hi Warren
After some additional debugging, it turned out that adding '@' in the new password for user: pidp8i caused the problem. You may want to add a note in the read.me file, recommending to be careful with special characters when changing the initial password
Rgds and Thx... enrique
(4.2) By Warren Young (tangent) on 2022-07-04 20:47:17 edited from 4.1 in reply to 3 [source]
Linux imposes no restrictions on password character set, other than CR and/or LF. You can put in heiroglyphics and emoji, if you want. You just need your two systems to agree on a character set, is all.
You've either got a typo, or your Pi's locale is misconfigured with respect to your remote keyboard.
I'm betting on the latter: Raspberry Pi OS ships configured for a UK keyboard, and from your self-registration data, it doesn't look like you're in the UK.
Run raspi-config
on the Pi to fix it. (Docs)
None of this is PiDP-8/I specific. A misconfigured locale will affect any Linux system.