22 - Pentesting SSH
Default Configuration
cat /etc/ssh/sshd_config | grep -v "#" | sed -r '/^\s*$/d'
## DANGERIOUS SETTINGS
PasswordAuthentication yes #Allows password-based authentication.
PermitEmptyPasswords yes #Allows the use of empty passwords.
PermitRootLogin yes #Allows to log in as the root user.
Protocol 1 #Uses an outdated version of encryption.
X11Forwarding yes #Allows X11 forwarding for GUI applications.
AllowTcpForwarding yes #Allows forwarding of TCP ports.
PermitTunnel #Allows tunneling.
DebianBanner yes #Displays a specific banner when logging in.Footprinting SSH
git clone https://github.com/jtesta/ssh-audit.git && cd ssh-audit
./ssh-audit.py 10.129.14.132Nmap Scripts
Last updated