You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ssh -o UserKnownHostsFile=/dev/null -T <USERNAME>@<HOST> 'bash -i'
Su usuario
- no se añade a /var/log/utmp
- no aparece en w o who cmd
- no tiene .profile o .bash_profile
Configuraciones
Deshabilitar password para el SSH
sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
Deshabilitar usuario root para el SSH
sed -i 's/^PermitRootLogin yes/#PermitRootLogin yes/' /etc/ssh/sshd_config