SSH not working
-
@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. -
@Beretta9 Great. I was glad you solved it. I like to follow these forums. I learn something new with each solved issue!
-
@Beretta9
Hi, good it worked.
BUT "known_hosts" file is a "client" file. You should have been able to connect from a remote computer anyway. So it does not make sense ;) Did you also generate a new ssh-key for the raspberry?It works for you now so maybe we should not put more time into it...
Best regards
-
I agree with pipari,
Know_hosts has noting to do with logging in with a password...
if your intrested take a look at my blog, I have a post all about ssh.
https://www.hempstutorials.co.uk/secure-shell-ssh-101/
Enjoy
Hemp...
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.