aikoncwd / aikoncwd-rpi-mediacenter

OS for RaspberryPi 2/3, with Kodi, RetroPie, Moonlight, Torrentbox, etc...
228 stars 42 forks source link

Entrando a root desde otro user por ssh via sudo #82

Open spikedboy opened 6 years ago

spikedboy commented 6 years ago

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!

ValkiryXDA commented 6 years ago

when you connect via SSH you are logging in as root so there is no need for $ su .... This isnt a issue

spikedboy commented 6 years ago

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.

ValkiryXDA commented 6 years ago

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