renardroux
Posts: 2
Joined: Sun Jun 21, 2020 2:01 pm

SSH to WAP Pi Zero not working

Sun Jun 21, 2020 2:23 pm

Howdy!

I've successfully followed the instructions here https://www.raspberrypi.org/documentati ... -routed.md, skipping the bit about routing through to an internet connection. I've connected directly to my Pi Zero W over WiFi, but can't ssh into the device. I'm running Buster lite and have been using the ip address that comes up when I type

Code: Select all

hostname -I
and port 22.

The end goal is to be able to remotely edit text files from my cell phone to update what the Pi is displaying, in this case high scores for a couple of Atari 2600 games prettied up and rendered using Pygame. So, if there's another way of doing that you would like to suggest I'd be happy to listen. However, I'm pretty sure I'm 90%+ of the way there using this method. So, if I can, I'll continue down this path. I'm not a beginner, but far from advanced.

Let me know what other information I could provide to work through this. Thanks in advance!

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: SSH to WAP Pi Zero not working

Sun Jun 21, 2020 4:30 pm

renardroux wrote:
Sun Jun 21, 2020 2:23 pm
Howdy!

I've successfully followed the instructions here https://www.raspberrypi.org/documentati ... -routed.md, skipping the bit about routing through to an internet connection. I've connected directly to my Pi Zero W over WiFi, but can't ssh into the device. I'm running Buster lite and have been using the ip address that comes up when I type

Code: Select all

hostname -I
and port 22.

The end goal is to be able to remotely edit text files from my cell phone to update what the Pi is displaying, in this case high scores for a couple of Atari 2600 games prettied up and rendered using Pygame. So, if there's another way of doing that you would like to suggest I'd be happy to listen. However, I'm pretty sure I'm 90%+ of the way there using this method. So, if I can, I'll continue down this path. I'm not a beginner, but far from advanced.

Let me know what other information I could provide to work through this. Thanks in advance!



Is the sshd daemon/listener enabled? It is disabled on RasPiOS by default. https://www.raspberrypi.org/documentati ... /README.md

renardroux
Posts: 2
Joined: Sun Jun 21, 2020 2:01 pm

Re: SSH to WAP Pi Zero not working

Sun Jun 21, 2020 4:57 pm

I placed an empty file called "ssh" on the boot partition and, for good measure after not connecting, ran raspi-config to choose to enable SSH.

derm123
Posts: 6
Joined: Tue Jun 09, 2020 7:23 am

Re: SSH to WAP Pi Zero not working

Tue Jun 23, 2020 12:24 pm

the command
sudo netstat -l
will show you the listening ports you should see something like

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN

likewise you can use the command
ifconfig
to verify your IP address, ie make sure you are connecting to the correct IP address. the ssh command I use is ssh pi@192.1681.1.101 to connect to my rpi.

bjtheone
Posts: 770
Joined: Mon May 20, 2019 11:28 pm
Location: The Frozen North (AKA Canada)

Re: SSH to WAP Pi Zero not working

Tue Jun 23, 2020 1:10 pm

Are you sure that your phone app is setup correctly and working? Can you use it to ssh into any other computer as a test?

It certainly should be possible to do what you want. I ssh in to my Pi's from my Samsung S8+ all the time.

Return to “Troubleshooting”