aikoncwd-rpi-mediacenter icon indicating copy to clipboard operation
aikoncwd-rpi-mediacenter copied to clipboard

Entrando a root desde otro user por ssh via sudo

Open spikedboy opened this issue 7 years ago • 3 comments

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!

spikedboy avatar Dec 03 '17 17:12 spikedboy

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

ValkiryXDA avatar Dec 20 '17 09:12 ValkiryXDA

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.

spikedboy avatar Dec 22 '17 17:12 spikedboy

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

ValkiryXDA avatar Jan 02 '18 01:01 ValkiryXDA