RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    SSH not working

    Scheduled Pinned Locked Moved Help and Support
    23 Posts 9 Posters 18.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Beretta9B
      Beretta9
      last edited by

      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?

      Retro Gamer Supreme

      P 1 Reply Last reply Reply Quote 0
      • P
        pipari @Beretta9
        last edited by

        @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

        // Best regards

        Beretta9B 1 Reply Last reply Reply Quote 0
        • Beretta9B
          Beretta9 @pipari
          last edited by

          @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.

          Retro Gamer Supreme

          P glennlakeG 2 Replies Last reply Reply Quote 0
          • P
            pipari @Beretta9
            last edited by

            @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.

            // Best regards

            Beretta9B 1 Reply Last reply Reply Quote 1
            • M
              mrbwa1
              last edited by

              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....)

              Beretta9B 1 Reply Last reply Reply Quote 1
              • glennlakeG
                glennlake @Beretta9
                last edited by

                @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.

                1 Reply Last reply Reply Quote 1
                • Beretta9B
                  Beretta9 @pipari
                  last edited by

                  @pipari I ran ipconfig and ping from my laptop.
                  I will check my firewall though. Thanks for your help.

                  Retro Gamer Supreme

                  1 Reply Last reply Reply Quote 0
                  • Beretta9B
                    Beretta9 @mrbwa1
                    last edited by

                    @mrbwa1 I haven't restarted my router, should've done that a long time ago.. I will try this thanks!

                    Retro Gamer Supreme

                    1 Reply Last reply Reply Quote 0
                    • P
                      pipari
                      last edited by

                      To verify that the ssh server is working on the raspberry:
                      [On the raspberry]

                      1. Login to the raspberry
                      2. 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.

                      // Best regards

                      Beretta9B 1 Reply Last reply Reply Quote 1
                      • Beretta9B
                        Beretta9 @pipari
                        last edited by

                        @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.

                        Retro Gamer Supreme

                        glennlakeG P 2 Replies Last reply Reply Quote 2
                        • glennlakeG
                          glennlake @Beretta9
                          last edited by

                          @Beretta9 Great. I was glad you solved it. I like to follow these forums. I learn something new with each solved issue!

                          1 Reply Last reply Reply Quote 1
                          • P
                            pipari @Beretta9
                            last edited by

                            @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

                            // Best regards

                            1 Reply Last reply Reply Quote 0
                            • H
                              hempstutorials
                              last edited by

                              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...

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post

                              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.