SSH not working
-
Pi 3 b
Floobs 3.7 with attract mode
Rii mini keyboard
2 PS3 controllersI was transferring roms via cyberduck, I transferred a few romsets and all was good. I went to drag my mame folder onto the pi and cyberduck crashed.
Now I cannot ftp into the pi anymore.
Here's what I've tried so far:
Restart pc
I Tried a different client / FileZilla and Putty
Enabling ssh and wifi
Reboot pi
Change host name
Tried Ethernet
Changed host name in client to retropie
None of this has worked. I know I have connection to the Internet, because I'm able to scrape rom data and artwork. -
Well that build isnt supported, but what does it give the IP as when you type "ifconfig" ?
-
At the top in red where it says ip address is 192.168.2.110.
After I typed the command if config, where it says wlan0, the inet addr is 192.168.2.110 Bcast 192.168.2.255. -
@Floob I've tried to login using:
Host 192.168.2.110
Username pi
Password raspberry
Port 22
This didn't work. -
@Beretta9 said in SSH not working:
At the top in red where it says ip address is 192.168.2.110.
After I typed the command if config, where it says wlan0, the inet addr is 192.168.2.110 Bcast 192.168.2.255.Wlan0? That means WiFi. WiFi connection on the Pi is quite quirky. I'd try to connect via cabled network and if that succeeds that I'd try wireless. I never succeeded to get a stable wireless connection to my Pi. Wired ethernet however: no problem.
Success. :-)
-
@Meneer-Jansen I had ssh working through wifi before this happened. Since then I have tried wired and wireless, neither one of these work anymore.
-
Hummmm how bout you try reinstalling the ssh package.
sudo apt-get --reinstall install openssh-server
I think
sudo apt-get --reinstall install ssh
will also work. -
@Shakz I will try that when I get home. Thanks!
-
When you switch the pie on and connect it to the internet, do you see it on your network? In Windows go to your Network and check if it's listed there. If it is then you're using the wrong IP. I don't use the network IP to connect via SSH I use the hostname which is: retropie
So try:
Host retropie
Username pi
Password raspberry
Port 22 -
@PetroRie i will try this. Thanks for the advise.
-
Still no luck. I tried to uninstall and reinstall the ssh server. Also tried to change my host name in cyberduck to retropie. Any more suggestions?
-
@Beretta9
Can you "ping" the host?also try telnet <ip address> 22 (<ip address> change to IP of the raspberry)
Guess you are running mac os x (because of the cyberduck app). Try running ssh from the terminal instead
ssh pi@<ip adress>best regards
-
@pipari I'm on A Windows system. I ran ipconfig then ran ping 192.168.2.110.
The ip is visible but comes back as 4 packets sent 4 packets lost. -
@Beretta9 said in SSH not working:
92.168.2.110
192.168.2.110 is the IP of raspberry? Because ipconfig should not work on the raspberry. On the raspberry it is ifconfig command to view network configuration.
As default you should be able to ping the raspberry. Thats the main problem that your computer cannot find the raspberry...
OR it could be that the windows firewall is blocking you. Try disable the firewall (temporary) to verify that thats not the problem.
-
Have you tried rebooting your router by chance? One device not working is often resolved with a router reboot. It tends to be pretty rare, but does happen (well except for the Ethernet to wifi bridge my Pi2 is plugged into... that sucker needs to be rebooted every week sometimes....)
-
@Beretta9 There is a windows program called "advanced ip scanner" that will tell you everything on your lan network. Do a google search, download and you can run it without installing. I hope this will help.
-
@pipari I ran ipconfig and ping from my laptop.
I will check my firewall though. Thanks for your help. -
@mrbwa1 I haven't restarted my router, should've done that a long time ago.. I will try this thanks!
-
To verify that the ssh server is working on the raspberry:
[On the raspberry]- Login to the raspberry
- type "ssh pi@localhost" without "
Then you should get a login prompt (first a question to accept the ssh key)
PS. You most get the IP from the raspberry, not the laptop... the IP of the laptop is irrelevant.
-
@pipari that command is what I needed.
I ran "ssh pi@localhost" I then got a message saying "Warning: remote host identification has changed". I then ran ssh-keygen -f "home/pi/.ssh/known_hosts" -R localhost.
Ran "ssh pi@localhost" gave a password and problem solved. Thank you everyone for all the help.
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.