SSH not working
-
@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.