Pi closes ssh connection after successful loginSSH tunnel: “channel x: will not send data after close”SSH...

Strange LED behavior: Why is there a voltage over the LED with only one wire connected to it?

Host telling me to cancel my booking in exchange for a discount?

Pass USB 3.0 connection through D-SUB connector

Are there any English words pronounced with sounds/syllables that aren't part of the spelling?

How can I print a 1 cm overhang with minimal supports?

What kind of anatomy does a centaur have?

Is it ethical to tell my teaching assistant that I like him?

How can I calculate the cost of Skyss bus tickets

Can GPL and BSD licensed applications be used for government work?

Was US film used in Luna 3?

Is an easily guessed plot twist a good plot twist?

Pgfplots fillbetween and Tikz shade

Book in which the "mountain" in the distance was a hole in the flat world

Killing a star safely

Does switching on an old games console without a cartridge damage it?

Is there a way to shorten this while condition?

Is it possible to access the complete command line including pipes in a bash script?

What gave NASA the confidence for a translunar injection in Apollo 8?

Were Moshe's sons Jewish?

Ultraproduct of Dividing Lines

Why does the salt in the oceans not sink to the bottom?

Import data from a current web session?

How to work a regular job as a former celebrity

Company requiring me to let them review research from before I was hired



Pi closes ssh connection after successful login


SSH tunnel: “channel x: will not send data after close”SSH - Connection closed after correct loginSSH pageant not workingSSH Remote Execution - checking server can do it?rsync fails when ssh can't open /dev/ttySSH connection immediately closes after loginWhy is my SSH connection being closed immediately after pubkey auth succeeds?Aws ec2 - How to rsync files between two remotes?Raspberry Pi SSH immediately closes connection after loginSSH Connection Closes Immediately After RemoteCommand






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I left my pi sitting for a few days with a 3V relay & sensor connected. I just tried to ssh into it, and the connection is closed after a successful login:



Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jul 24 05:07:08 2019 from 192.168.86.27
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 4 efd 6 [write])
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 5 efd 6 [write])
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
Connection to 192.168.86.20 closed.
Transferred: sent 2152, received 2744 bytes, in 0.1 seconds
Bytes per second: sent 15562.4, received 19843.5
debug1: Exit status -1


I've tried the following (all of which return nothing after logging in):



ssh pi@raspberrypi.lan mv .bash_profile .bash_profile.SAVE


ssh pi@raspberrypi.lan mv .profile .profile.SAVE


Perhaps I should just reflash?










share|improve this question







New contributor



hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    0















    I left my pi sitting for a few days with a 3V relay & sensor connected. I just tried to ssh into it, and the connection is closed after a successful login:



    Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Wed Jul 24 05:07:08 2019 from 192.168.86.27
    debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
    debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
    debug2: channel 0: rcvd eow
    debug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 4 efd 6 [write])
    debug2: channel 0: input open -> closed
    debug2: channel 0: rcvd eof
    debug2: channel 0: output open -> drain
    debug2: channel 0: obuf empty
    debug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 5 efd 6 [write])
    debug2: channel 0: output drain -> closed
    debug2: channel 0: rcvd close
    debug2: channel 0: almost dead
    debug2: channel 0: gc: notify user
    debug2: channel 0: gc: user detached
    debug2: channel 0: send close
    debug2: channel 0: is dead
    debug2: channel 0: garbage collecting
    debug1: channel 0: free: client-session, nchannels 1
    Connection to 192.168.86.20 closed.
    Transferred: sent 2152, received 2744 bytes, in 0.1 seconds
    Bytes per second: sent 15562.4, received 19843.5
    debug1: Exit status -1


    I've tried the following (all of which return nothing after logging in):



    ssh pi@raspberrypi.lan mv .bash_profile .bash_profile.SAVE


    ssh pi@raspberrypi.lan mv .profile .profile.SAVE


    Perhaps I should just reflash?










    share|improve this question







    New contributor



    hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I left my pi sitting for a few days with a 3V relay & sensor connected. I just tried to ssh into it, and the connection is closed after a successful login:



      Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l

      The programs included with the Debian GNU/Linux system are free software;
      the exact distribution terms for each program are described in the
      individual files in /usr/share/doc/*/copyright.

      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      permitted by applicable law.
      Last login: Wed Jul 24 05:07:08 2019 from 192.168.86.27
      debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
      debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
      debug2: channel 0: rcvd eow
      debug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 4 efd 6 [write])
      debug2: channel 0: input open -> closed
      debug2: channel 0: rcvd eof
      debug2: channel 0: output open -> drain
      debug2: channel 0: obuf empty
      debug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 5 efd 6 [write])
      debug2: channel 0: output drain -> closed
      debug2: channel 0: rcvd close
      debug2: channel 0: almost dead
      debug2: channel 0: gc: notify user
      debug2: channel 0: gc: user detached
      debug2: channel 0: send close
      debug2: channel 0: is dead
      debug2: channel 0: garbage collecting
      debug1: channel 0: free: client-session, nchannels 1
      Connection to 192.168.86.20 closed.
      Transferred: sent 2152, received 2744 bytes, in 0.1 seconds
      Bytes per second: sent 15562.4, received 19843.5
      debug1: Exit status -1


      I've tried the following (all of which return nothing after logging in):



      ssh pi@raspberrypi.lan mv .bash_profile .bash_profile.SAVE


      ssh pi@raspberrypi.lan mv .profile .profile.SAVE


      Perhaps I should just reflash?










      share|improve this question







      New contributor



      hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I left my pi sitting for a few days with a 3V relay & sensor connected. I just tried to ssh into it, and the connection is closed after a successful login:



      Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l

      The programs included with the Debian GNU/Linux system are free software;
      the exact distribution terms for each program are described in the
      individual files in /usr/share/doc/*/copyright.

      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      permitted by applicable law.
      Last login: Wed Jul 24 05:07:08 2019 from 192.168.86.27
      debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
      debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
      debug2: channel 0: rcvd eow
      debug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 4 efd 6 [write])
      debug2: channel 0: input open -> closed
      debug2: channel 0: rcvd eof
      debug2: channel 0: output open -> drain
      debug2: channel 0: obuf empty
      debug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 5 efd 6 [write])
      debug2: channel 0: output drain -> closed
      debug2: channel 0: rcvd close
      debug2: channel 0: almost dead
      debug2: channel 0: gc: notify user
      debug2: channel 0: gc: user detached
      debug2: channel 0: send close
      debug2: channel 0: is dead
      debug2: channel 0: garbage collecting
      debug1: channel 0: free: client-session, nchannels 1
      Connection to 192.168.86.20 closed.
      Transferred: sent 2152, received 2744 bytes, in 0.1 seconds
      Bytes per second: sent 15562.4, received 19843.5
      debug1: Exit status -1


      I've tried the following (all of which return nothing after logging in):



      ssh pi@raspberrypi.lan mv .bash_profile .bash_profile.SAVE


      ssh pi@raspberrypi.lan mv .profile .profile.SAVE


      Perhaps I should just reflash?







      ssh raspberry-pi






      share|improve this question







      New contributor



      hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 19 mins ago









      hkyqhkyq

      11 bronze badge




      11 bronze badge




      New contributor



      hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      hkyq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          hkyq is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531787%2fpi-closes-ssh-connection-after-successful-login%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          hkyq is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          hkyq is a new contributor. Be nice, and check out our Code of Conduct.













          hkyq is a new contributor. Be nice, and check out our Code of Conduct.












          hkyq is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531787%2fpi-closes-ssh-connection-after-successful-login%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...