• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • J
    Jste84 @mitu
    last edited by 26 Aug 2019, 08:54

    @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
    • M
      mitu Global Moderator
      last edited by 26 Aug 2019, 08:57

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

      J 1 Reply Last reply 26 Aug 2019, 09:01 Reply Quote 1
      • C
        cyperghost @mitu
        last edited by 26 Aug 2019, 08:58

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

        M 1 Reply Last reply 26 Aug 2019, 08:59 Reply Quote 0
        • M
          mitu Global Moderator @cyperghost
          last edited by 26 Aug 2019, 08:59

          @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 26 Aug 2019, 08:59

            @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 26 Aug 2019, 09:01

              @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 26 Aug 2019, 09:05

                Still getting the same error when I enter systemctl status ssh

                M 1 Reply Last reply 26 Aug 2019, 09:27 Reply Quote 0
                • M
                  mitu Global Moderator @Jste84
                  last edited by 26 Aug 2019, 09:27

                  @Jste84 Strange - are you sure your SD card is ok ? After step 1 - removing the host key files -, can you check that the files are really removed from /etc/ssh ?

                  J 1 Reply Last reply 26 Aug 2019, 09:33 Reply Quote 0
                  • J
                    Jste84 @mitu
                    last edited by Jste84 26 Aug 2019, 09:33

                    @mitu said in Ssh help/background music:

                    @Jste84 Strange - are you sure your SD card is ok ? After step 1 - removing the host key files -, can you check that the files are really removed from /etc/ssh ?

                    SD card is new, bought from a store rather than online, so absolutely shouldn't have any issues.

                    Silly question, but how would I know if they'd been removed? Or if they were there to begin with?

                    Also how do I check etc/ssh?

                    M 1 Reply Last reply 26 Aug 2019, 10:21 Reply Quote 0
                    • M
                      mitu Global Moderator @Jste84
                      last edited by 26 Aug 2019, 10:21

                      @Jste84 said in Ssh help/background music:

                      Also how do I check etc/ssh?

                      You can use mc (Midnight Commander) to browse the filesystem, or just run

                      ls -l /etc/ssh
                      

                      to see if the files you removed in Step 1 are still there.

                      1 Reply Last reply Reply Quote 0
                      • J
                        Jste84
                        last edited by 26 Aug 2019, 10:42

                        @mitu IMG_20190826_114146_compress11.jpg

                        1 Reply Last reply Reply Quote 0
                        • M
                          mitu Global Moderator
                          last edited by mitu 26 Aug 2019, 10:58

                          OK, so it's obvious you didn't delete the files - if you put # in front of a command, the command is never executed because # is a comment marker, everything after it it's ignored.
                          Do this for Step 1:

                          sudo rm /etc/ssh/ssh_host_*
                          

                          then repeat Step 2.

                          J 1 Reply Last reply 26 Aug 2019, 11:05 Reply Quote 1
                          • J
                            Jste84 @mitu
                            last edited by 26 Aug 2019, 11:05

                            This post is deleted!
                            M 1 Reply Last reply 26 Aug 2019, 11:06 Reply Quote 0
                            • M
                              mitu Global Moderator @Jste84
                              last edited by 26 Aug 2019, 11:06

                              @Jste84 said in Ssh help/background music:

                              i'm getting a message to say permission denied?

                              At which part ? If it's the ls command (list), then it's ok, you can ignore it and proceed to Step 2.

                              J 1 Reply Last reply 26 Aug 2019, 11:07 Reply Quote 1
                              • J
                                Jste84 @mitu
                                last edited by Jste84 26 Aug 2019, 11:07

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • J
                                  Jste84
                                  last edited by 26 Aug 2019, 11:13

                                  @mitu success - I'm now in. Thank you so much for your help - much appreciated and sorry for my daft questions

                                  1 Reply Last reply Reply Quote 1
                                  39 out of 39
                                  • First post
                                    39/39
                                    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.

                                    This community forum collects and processes your personal information.
                                    consent.not_received