aikoncwd-rpi-mediacenter
aikoncwd-rpi-mediacenter copied to clipboard
Entrando a root desde otro user por ssh via sudo
Al hacer sudo /bin/su desde otro usuario por ssh, nunca se alcanza el shell, se queda cargando.
Por qué? Se puede solucionar esto?
Un saludo. Y muchas gracias por la distro!
when you connect via SSH you are logging in as root so there is no need for $ su .... This isnt a issue
I disabled root through ssh on purpose. It is a security measure to dificult brute force attacks. The ssh service is exposed to the internet.
thats a bit silly since there is only root account. Just edit /etc/hosts.deny $ sshd: ALL
or set an ip range i.e 10.0.0.0/24
or
$ sudo iptables -A INPUT -p tcp --dport 22 -j DROP