Can’t SSH after update to Stretch
-
Since updating to Stretch (from Jessie) I am now unable to SSH. Previously I would type the pi’s IP address into a web browser but this no longer works. I get the message “the site can’t be reached. (IP address) refused to connect”. I have checked that I am using the correct IP address.
I have enabled SSH, searched the web and this forum, and read the github guide.
I can ping the pi’s IP and can also access retropie manager using :8000 after the IP address.
I tried installing Apache2 and can see the “it works” page when entering the IP address. I have since removed Apache2.
The pi is connected via Ethernet and the laptop via WiFi. I have tried all combinations of connections but nothing changes. Nothing has changed network wise, the only change made was updating to Stretch. The last time that I connected to the pi was the day before updating and it worked fine.
I am new to all of this so please be gentle and forgive me if I am being stupid.
Raspberry pi 3 B
Installed Stretch from SD image retropie-4.4-rpi2_rpi3.img from retropie website and used sudo apt upgrade/update
CanaKit 2.5amp psu -
Did you enable SSH after installing the image ? It's not enabled by default.
-
@mitu yes I have done that
-
Can you check if
ssh
is started on the PI ?
Exit Emulationstation, then execute from the command linesudo systemctl status ssh
If the SSH service is running, it should show something like
sudo systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2018-11-17 07:02:11 UTC; 1 weeks 1 days ago Main PID: 551 (sshd) CGroup: /system.slice/ssh.service └─551 /usr/sbin/sshd -D [...]
-
@mitu yes it says the same as your example apart from the 2 instances where it says 551 on yours, mine says 640. It is loaded and active.
-
@Rerk said in Can’t SSH after update to Stretch:
Since updating to Stretch (from Jessie) I am now unable to SSH. Previously I would type the pi’s IP address into a web browser but this no longer works.
I may lack the knowledge of a certain feature of Retropie, but SSH itself is only a way to connect to a system. It doesn't provide any web interface to my knowledge.
What happened prior to Stretch when you entered the IP in a web browser?
If you're using Windows, did you try connect to the Pi via ssh with putty as it is described in the Retropie Docs? If you're using MacOS or Linux, you can use SSH without any additional software, did you try that?
-
@Clyde I have tried it on my partners Mac the day before the upgrade and I was able to access the pi as needed. I didn’t try on my windows laptop (simply because it was packed in my uni bag and the Mac was there ready and waiting).
Post upgrade I am unable to connect either with the Mac or Windows.
To be completely honest, it has been a long time since I have tried to connect via windows, as I have not needed to since initially setting the system up. I can’t honestly remember what happened when I did connect via windows, as I used retropie manager to transfer roms. It is strange though how I now can not connect with the Mac.
I was under the impression that if I type the IP address in, or ‘//retropie’ in file explorer/finder then I should be able to access it. Maybe I’m mistaken and was getting confused with the retropie manager interface?Yes I have followed the instructions for putty on the link you provided. I can get the command line via putty.
-
@Rerk said in Can’t SSH after update to Stretch:
I was under the impression that if I type the IP address in, or ‘//retropie’ in file explorer/finder then I should be able to access it. Maybe I’m mistaken and was getting confused with the retropie manager interface?
Was that the way you accessed the Pi from the Mac yesterday?
I'm not sure what you mean by "retropie manager". Could you please elaborate on that?
Yes I have followed the instructions for putty on the link you provided. I can get the command line via putty.
The command line of putty or the one from Retropie after a successful SSH login? If the former, can you log into the Pi via SSH from there?
Sorry that I'm not completely getting what you're trying to say. O:)
-
@Rerk said in Can’t SSH after update to Stretch:
I was under the impression that if I type the IP address in, or ‘//retropie’ in file explorer/finder then I should be able to access it. Maybe I’m mistaken and was getting confused with the retropie manager interface?
In Windows Explorer it should work with
\\retropie
,\\retropie.local
or just\\IP.ADD.RE.SS
. In macOS, it's a bit different. However, this uses File Shares and not SSH. If you're just looking to transfer ROMs, you can use File Shares. -
Another common way to access Retropie via SSH on Windows (or SFTP for that matter) is WinSCP, see the Docs again for the login details.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.