Como fazer SSH em um host sem iniciar o byobu

Como fazer SSH em um host sem iniciar o byobu

Meu shell zsh inicia automaticamente o byobu. O host em questão tem uma média de carga de 1m de 300 no momento (o tempo de atividade do host ssh retorna em 50 segundos do local, com 3 segundos gastos remotamente).

Iniciar o byobu leva muito tempo. Eu gostaria de começar sem byobu. Posso passar alguma variável de ambiente para cancelar a inicialização do byobu?

Responder1

Com certeza, você pode usar a variável de ambiente LC_BYOBU=0:

LC_BYOBU=0 ssh user@hostname

Alternativamente, você também pode fazer isso:

ssh -t user@hostname zsh

ou

ssh -t user@hostname bash

Divulgação completa: sou o autor e mantenedor doByobu.

Responder2

Conforme encontrado em /usr/bin/byobu-launch:

# 1) Prevent recursion, and multiple sourcing of profiles with the BYOBU_SOURCED_PROFILE environment variable.
# 2) Respect environment variables (LC_BYOBU and BYOBU_DISABLE) passable over SSH to disable
#    Byobu launch.  This puts that configurability on the SSH client,
#    in addition to the server.
#    To use over SSH, your /etc/ssh/sshd_config and /etc/ssh/ssh_config
#    must pass this variable with AcceptEnv and SendEnv.
#    Note that LC_* are passed by default on Debian/Ubuntu, we'll optionally
#    support LC_BYOBU=0
#    And in your local bashrc:
#      $HOME/.bashrc:  export LC_BYOBU=0
#    or edit your sshd_config, ssh_config, and set:
#      $HOME/.bashrc:  export BYOBU_DISABLE=1

informação relacionada