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 help/background music

    Scheduled Pinned Locked Moved Help and Support
    background musisshputtywinscpbgm
    39 Posts 5 Posters 5.6k 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.
    • mituM
      mitu Global Moderator
      last edited by

      Try re-generating the sshd server keys - maybe the errors shown in the log have something to do with the connection not working - https://www.cyberciti.biz/faq/howto-regenerate-openssh-host-keys/.

      J 1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde @Jste84
        last edited by

        @Jste84 said in Ssh help/background music:

        This is the output of the file you mentioned. Any idea what this means?

        It says that (some of) your ssh host keys on the Pi couldn't be read, which could be fixed by the method that @mitu linked to. Maybe that will solve your problem.

        But I asked you for any messages on the system you're trying to connect to your Pi from by whatever means you tried to connect to your Pi with (WinSCP, ssh in putty, etc.).

        J 1 Reply Last reply Reply Quote 0
        • J
          Jste84 @Clyde
          last edited by

          @Clyde said in Ssh help/background music:

          @Jste84 said in Ssh help/background music:

          This is the output of the file you mentioned. Any idea what this means?

          It says that (some of) your ssh host keys on the Pi couldn't be read, which could be fixed by the method that @mitu linked to. Maybe that will solve your problem.

          But I asked you for any messages on the system you're trying to connect to your Pi from by whatever means you tried to connect to your Pi with (WinSCP, ssh in putty, etc.).

          I was getting a message saying sftp unavailable, but FTP is available.

          I've done the above and I'm now getting a message saying network error....

          1 Reply Last reply Reply Quote 0
          • J
            Jste84 @mitu
            last edited by

            @mitu I've tried but I'm.now getting a network error. Software caused connection abort message.

            ClydeC mituM 2 Replies Last reply Reply Quote 0
            • ClydeC
              Clyde @Jste84
              last edited by

              @Jste84 Please give us the exact error messages, as we can't deduce much from a summary like "a network error".

              J 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @Jste84
                last edited by

                @Jste84 Most likely the procedure didn't fix - can you run systemctl status ssh again and see if any errors are shown, from the log ?

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jste84 @mitu
                  last edited by

                  @mitu said in Ssh help/background music:

                  @Jste84 Most likely the procedure didn't fix - can you run systemctl status ssh again and see if any errors are shown, from the log ?

                  IMG_20190826_090733_compress16.jpg

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jste84 @Clyde
                    last edited by

                    @Clyde said in Ssh help/background music:

                    @Jste84 Please give us the exact error messages, as we can't deduce much from a summary like "a network error".

                    IMG_20190826_091103_compress64.jpg

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jste84
                      last edited by

                      @Clyde @mitu I've just tried to reinstall putty, to check if this makes any difference...but no joy. Slightly different error message

                      IMG_20190826_091629_compress28.jpg

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        el chupacabra @Jste84
                        last edited by el chupacabra

                        Are you sure ssh is running? How did you run raspi-config before? you should use it again and make sure the ssh service is running on boot.

                        also you can do
                        tail /var/log/auth.log
                        or just nano to it and look at the last lines to see why it kicked you off. If it is running, that is.

                        J 1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator
                          last edited by

                          Putty is a simple program, doesn't need to be re-installed. The errors in the ssh service indicate that sshd doesn't work correctly, hence the Putty error. If you run - from a command line on the Pi - ssh localhost, you'll probably also receive an error.

                          I've run the procedure to reset the SSHD host keys and they are re-generated - make sure you've correctly executed the steps on that page and that you restart the ssh service.

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            Jste84 @mitu
                            last edited by

                            @mitu maybe im doing it wrong. When I'm following the guide and get to the step keygen and it says remote server name here.... What should I be putting in?

                            mituM 1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator @Jste84
                              last edited by

                              @Jste84 The keygen step is the execution of

                              sudo dpkg-reconfigure openssh-server
                              

                              Are you executing that on the PI ?

                              J cyperghostC 2 Replies Last reply Reply Quote 0
                              • J
                                Jste84 @mitu
                                last edited by

                                @mitu yes executed that on the pi. Was looking at step 3? Do I need to do that? And if so do I do it on the pi?

                                I

                                1 Reply Last reply Reply Quote 0
                                • mituM
                                  mitu Global Moderator
                                  last edited by

                                  Step 3 is not necessary - that's just for the SSH clients which connected before to the same machine.

                                  J 1 Reply Last reply Reply Quote 1
                                  • cyperghostC
                                    cyperghost @mitu
                                    last edited by

                                    @mitu If he needs only a possibilty to copy some files then why not set port to 21 and use FTP? This should work out of the box.

                                    mituM 1 Reply Last reply Reply Quote 0
                                    • mituM
                                      mitu Global Moderator @cyperghost
                                      last edited by

                                      @cyperghost said in Ssh help/background music:

                                      If he needs only a possibilty to copy some files then why not set port to 21 and use FTP?

                                      FTP is a different protocol, you'd need a FTP server, while SSHD only provides sftp/scp.

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        Jste84 @el chupacabra
                                        last edited by

                                        @el-chupacabra said in Ssh help/background music:

                                        Are you sure ssh is running? How did you run raspi-config before? you should use it again and make sure the ssh service is running on boot.

                                        also you can do
                                        tail /var/log/auth.log
                                        or just nano to it and look at the last lines to see why it kicked you off. If it is running, that is.

                                        Ssh should be running. I've enabled it via raspiconfig. Tried this via both the retropie settings and manually by quitting emulation station

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          Jste84 @mitu
                                          last edited by

                                          @mitu ahh ok that's what I thought. Then yes, step 1 and 2 are complete. I keep getting remote side unexpectedly closed network connection message from putty

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            Jste84
                                            last edited by

                                            Still getting the same error when I enter systemctl status ssh

                                            mituM 1 Reply Last reply Reply Quote 0
                                            • 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.