Ubuntu
SSH
2.
, root .
adduser test
test
usermod -a -G sudo test
, test sudo, :
id test
ssh ( ), ,
ssh
sudo apt-get install openssh-server
.
sudo nano /etc/ssh/sshd_config
, ssh 22. , . 2200

ssh, RSA, . , RSAAuthentication PubkeyAuthentication, "NO". ROOT, Authetication: PermitRootLogin "NO"

AllowUsers @, . . . *
test .
-
test@* - test
test@192.168.0.* - test 192.168.0.0
test@192.168.0.104 - test ip 192.168.0.104
*@192.168.0.* - 192.168.0.0

( test2),
DenyUsers test2
sudo /etc/init.d/ssh start
Ssh . . 2200.
firewall arno-iptables-firewall, . .
sudo dpkg-reconfigure arno-iptables-firewall
, . , .

, 2200.
, ENTER .
ssh
ssh denyhosts. python-, /var/log/auth.log ssh ip-, /etc/hosts.deny, ssh.
sudo aptitude install denyhosts
/var/log/auth.log ip-, , /etc/hosts.deny. , /var/log/auth.log .
sudo nano /etc/denyhosts.conf
PURGE_DENY 3 . , .
PURGE_DENY = 3h
, , :
ADMIN_EMAIL = test@example.org test@example.org
, denyhosts:
sudo service denyhosts restart
P.S. .
passwd user - user
P.S.S. , shh
ssh, PuttY.
http://putty.org.ru/download.html
Оставить комментарий