Cómo utilizar SSH en un host sin iniciar byobu

Cómo utilizar SSH en un host sin iniciar byobu

Mi shell zsh inicia automáticamente byobu. El host en cuestión tiene un promedio de carga de 1 m de 300 en este momento (el tiempo de actividad del host ssh regresa en 50 segundos desde el local, con 3 segundos dedicados de forma remota).

Iniciar byobu lleva una cantidad excesiva de tiempo. Me gustaría empezar sin byobu. ¿Puedo pasar alguna variable de entorno para cancelar el inicio de byobu?

Respuesta1

Absolutamente, puedes usar la variable de entorno LC_BYOBU=0:

LC_BYOBU=0 ssh user@hostname

Alternativamente, también puedes hacer esto:

ssh -t user@hostname zsh

o

ssh -t user@hostname bash

Divulgación completa: soy el autor y mantenedor deByobu.

Respuesta2

Como se encuentra en /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

información relacionada