execução do comando @SSH trava, embora o shell interativo funcione bem

Quando tento executar um comando em um servidor remoto com ssh, o comando ssh é interrompido após o comandoexec request accepted debugar mensagem e, eventualmente, atingir o tempo limit

O comando que falhou:ssh -v -v <username>@<server> uptime (também tentouecho hello etc.)

debug1: Authentication succeeded (publickey).
Authenticated to <server> (<ip>:22).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting [email protected]
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

E aí está, indefinidamente.

Quando ssh sem um comando no meu servidor remoto, no entanto, recebo um shell interativo e tudo fica be

Comando bem sucedido:ssh -v -v <username>@<server>

Saída

debug1: Authentication succeeded (publickey).
Authenticated to <server> (<ip>:22).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting [email protected]
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!
<prompt>%
...

lguém tem uma idéia de por que uma sessão interativa seria bem-sucedida, mas uma execução de comando nã

@ me assombra há meses, porque não posso mais usar o uníssono para sincronizar meus arquivos (costumava funcionar). Qualquer ajuda muito apreciad

questionAnswers(6)

yourAnswerToTheQuestion