Note that there are some explanatory texts on larger screens.

plurals
  1. POSSH Command Execution Hangs, although interactive shell functions fine
    primarykey
    data
    text
    <p>When I attempt to execute a command on a remote server with ssh, the ssh command hangs after the <code>exec request accepted</code> debug message, and eventually times out.</p> <p>The failing command: <code>ssh -v -v &lt;username&gt;@&lt;server&gt; uptime</code> (also tried <code>echo hello</code> etc.)</p> <pre><code>debug1: Authentication succeeded (publickey). Authenticated to &lt;server&gt; (&lt;ip&gt;:22). debug1: channel 0: new [client-session] debug2: channel 0: send open debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug2: callback start debug2: client_session2_setup: id 0 debug2: fd 4 setting TCP_NODELAY debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug2: channel 0: request env confirm 0 debug1: Sending command: uptime debug2: channel 0: request exec confirm 1 debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: exec request accepted on channel 0 </code></pre> <p>And there it hangs, indefinitely.</p> <p>When I ssh without a command into my remote server, however, I get an interactive shell and all is good.</p> <p>Successful Command: <code>ssh -v -v &lt;username&gt;@&lt;server&gt;</code></p> <p>Output:</p> <pre><code>debug1: Authentication succeeded (publickey). Authenticated to &lt;server&gt; (&lt;ip&gt;:22). debug1: channel 0: new [client-session] debug2: channel 0: send open debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug2: callback start debug2: client_session2_setup: id 0 debug2: fd 4 setting TCP_NODELAY debug2: channel 0: request pty-req confirm 1 debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug2: channel 0: request env confirm 0 debug2: channel 0: request shell confirm 1 debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel_input_status_confirm: type 99 id 0 debug2: PTY allocation request accepted on channel 0 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: shell request accepted on channel 0 Welcome! &lt;prompt&gt;% ... </code></pre> <p>Has anyone an idea why an interactive session would be successful but a command execution not?</p> <p>Has been haunting me for months now because I cannot use unison to sync my files any more (it used to work). Any help much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload