Properly exiting a Remote Shell session
  • Just looking around
    Gerbinist
    Posts: 13 from 2015/7/27
    On both MOS (Remote Shell) and Windows (PuTTY) I use a ssh session to connect to my router.

    When using PuTTY to connect to the router and typing 'exit', the log tells me:

    Code:
    Jul 25 13:32:28 dropbear[1281]: Exit (admin): Exited normally


    When using Remote Shell and typing 'exit' the log tells me:

    Code:
    Jul 25 13:33:20 dropbear[1772]: Exit (admin): Disconnect received


    Together with this behaviour I notice Remote Shell is 'stalled' for a few seconds after displaying 'Connection to 192.168.1.1 closed.' and then jumps to the entry I selected in the drop down menu.
    Instead of typing 'exit' the session can also be closed by typing the following:

    Code:
    <ENTER>
    ~.


    When doing it like this, the log entry is still the same, but the mentioned delay above is no longer present: it jumps to the entry selection right away.

    This makes me wonder if the 'exit' procedure is handled correctly in Remote Shell.
  • »25.07.17 - 11:51
    Profile
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    Gerbinist wrote:
    Together with this behaviour I notice Remote Shell is 'stalled' for a few seconds after displaying 'Connection to 192.168.1.1 closed.'

    I always press enter once more to skip that "stalling". I don't know if there's something wrong, but at least that does the trick and Remote Shell doesn't need to abort the connection if (when) you don't have the patience to wait the delay there.
  • »25.07.17 - 13:19
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    This is some shell incompatibility I never had the time to address... Doesn't have anything to do with the connection itself.
  • »25.07.17 - 13:36
    Profile Visit Website
  • Just looking around
    Gerbinist
    Posts: 13 from 2015/7/27
    jPV, thanks, the additional enter does indeed skip the stalling.

    Quote:

    This is some shell incompatibility I never had the time to address... Doesn't have anything to do with the connection itself.


    jacadcaps, are you referring to the stalling with your remark or the "Exited normally" vs. "Disconnect received" log entry?
  • »25.07.17 - 13:52
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    The stalling.
  • »25.07.17 - 16:58
    Profile Visit Website