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 Connection Dropping

    Scheduled Pinned Locked Moved Help and Support
    ssh
    5 Posts 3 Posters 939 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.
    • hansolo77H
      hansolo77
      last edited by

      Hey guys, been awhile!

      I was doing some maintenance through SSH and out of the blue I get disconnected from my session. When I try to reconnect, I get access denied issues, like the password is wrong or something. I went to the actual console (F4) and tried resetting the password, but I still got the same error. I took my issue into research mode and found on the RetroPie docs that SSH has been disabled by default on the newer image. I thought I've used this long since the update, but went through the process of making sure it was enabled again anyway. I've also tried resetting the password again. Putty and WinSCP did pop up a new message about the key being different from the host, so I accepted the change thinking this was what I needed. I was able to login through WinSCP and Putty, but then once I started a process on it, I got booted off again.

      I did a search and haven't really seen anybody having this or a similar issue. Could it be something like a corrupted install or some messed up setting somewhere? I'm not sure where to look or what to check. I've gotten a lot more handy with Linux in the last couple of years, playing with RetroPie mostly. I'm sure a lot of you regulars remember me. Just look for a bit of help. Any ideas?

      Who's Scruffy Looking?

      hansolo77H 1 Reply Last reply Reply Quote 0
      • hansolo77H
        hansolo77 @hansolo77
        last edited by hansolo77

        I forgot to mention... I've recently updated the firmware to my router, if that made a difference I'm not sure.. also, I'm connecting via onboard Wifi. Using RetroPie v4.4 (according to the retropie-setup). Also, this is a Raspberry Pi 3. :)

        Also, strangely, the Pi's key (fingerprint, whatever) seems to have changed again since I reboot it. When I tried to reconnect to it remotely after rebooting, WinSCP and Putty both wanted my input on whether to accept this change again or not. That seems highly unusual. I've only ever had to do that when I reflash the card with a new image (not a backup).

        Who's Scruffy Looking?

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

          @hansolo77 Is your router/internet provider supporting IPv6 now ? It routinely happens to me that the Pi is changing it's IPv6 address and I get prompted to re-confirm the SSH connection.
          For the other problem, I can't say I've witnessed this (SSH getting disabled). Note that RetroPie used the Raspbian defaults w.r.t. SSH and it's disabled by default since 4.2 (?).

          1 Reply Last reply Reply Quote 0
          • hansolo77H
            hansolo77
            last edited by hansolo77

            The router has always support IP6 but I prefer not to use it so I've got it disabled. As for the issue, I think (knock on wood) I fixed it. I ended up just going through as if it's a new install. I went through raspi-config, disabled then re-enabled the ssh, and set up the location as well as the wifi country. I then changed the host name to something crazy then changed it back to retropie. I then changed the password to something crazy then changed it back. I then disconnected the wifi on the pi and then re-established the connection to the router. After all of that, I seemed to have repaired the constant disconnect. I will report back if that changes, but it looks good now. Something somewhere probably got whacked. It might have been from updating the router's firmware, causing the connection with the SSID to no longer be right and the Pi didn't know how to fix it.

            Who's Scruffy Looking?

            cyperghostC 1 Reply Last reply Reply Quote 0
            • cyperghostC
              cyperghost @hansolo77
              last edited by

              @hansolo77 You can place a file named sshto boot directory. This will enable ssh, too. I hope that ssh is enabled by default on next release ;)

              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.