/etc/ssh/ssh_config: Host * ForwardAgent no ForwardX11 no RhostsAuthentication no RhostsRSAAuthentication no RSAAuthentication yes PasswordAuthentication yes FallBackToRsh no UseRsh no BatchMode no CheckHostIP yes StrictHostKeyChecking no IdentityFile ~/.ssh/identity IdentityFile ~/.ssh/id_dsa IdentityFile ~/.ssh/id_rsa Port 22 Protocol 2 Cipher blowfish Compression yes CompressionLevel 6 KeepAlive no EscapeChar ~ man ssh /etc/ssh/sshd_conf: Port 22 Protocol 2 ListenAddress 192.168.1.1 # HostKey for protocol version 1 #HostKey /etc/ssh/ssh_host_key # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 3600 #ServerKeyBits 768 # Logging SyslogFacility AUTH LogLevel INFO # Authentication: LoginGraceTime 600 PermitRootLogin no StrictModes yes PasswordAuthentication yes PermitEmptyPasswords no #RSAAuthentication yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys RhostsAuthentication no IgnoreRhosts yes RhostsRSAAuthentication no HostbasedAuthentication no IgnoreUserKnownHosts yes AllowUsers dentonj X11Forwarding no X11DisplayOffset 10 AllowTcpForwarding yes PrintMotd yes PrintLastLog no KeepAlive no #UseLogin no Banner /etc/issue.net ReverseMappingCheck yes
FAIL_DELAY 7 # було 3 секунди
І -- дивна річ взагалі -- файл /etc/inetd.conf не існує.
перегляд правил всіх ланцюжків таблиці filter:iptables -t filter -L --line-number -v -n -xблокує ssh, telnet через eth0 з ІР _ip_addres_of_crack_:iptables -I INPUT 1 -p TCP -i eth0 -s _ip_addres_of_crack_ -m multiport --destination-port 22,23 -j DROPблокує все через eth0 з ІР _ip_addres_of_crack_:iptables -I INPUT 1 -p ALL -i eth0 -s _ip_addres_of_crack_ -j DROP