???????????? ???????.

??????? ?????? ????????? ? ?????????? – ??? ?????? ????? ? online.
??? ?????? ? ?????? ???????? ??? ??????????? ? ????????? ???????


? ???? ???????
? ????? ???... (????, ?????? ????, ?????? ??????? ? ?.?.)
?? ???????. ???? ??????? ??????? ?? ???????? ???? ??????, ? ???? ?? ??? ????? ?? ????? ???????? ? ???????????? ?????? (? ???? ? ?????, ?? ???????).
?????? – ????????????. ???????? ? ?????????. ??????????? ??? ??????? ????????? ? ????????? ?????????? ?????? ???????, ???????? ?????, ??????????? ? ????????? ? ???????? ????? ??????? ????????? – ??? ???????? ????? ????????? ????????????. ? ???????? ??????? ??? ????? ???? ??? ?????????? ????????????? – ??? ????????? ????????????.
??? ????? ????? ?? ??????? ??? ?????????? ????????? Putty – ??????? ?????: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
(??????? ?? ?????????????, ??? ?? ??????? ??? ?????????? ( ? 90% ??) ???????? ????????? ?????? Pico

??? ????? ????????????? ??????????? ? ????????? ??????, ??? ???????? ?? ????? ?????? ?? ???????? ???????????? ??????????.

1.??????, ??? ??????? ??????? – ????????? ?????? ????? ??? root ? ???????? ??????????? ?????? ?? ????????? SSH2, ??? ????? ??????????.
??? ????? ??????? ? ????????? ??????:

pico -w /etc/ssh/sshd_config

??????? ? ??????????? ????? ??????
#Port 22
? ??????????????? ?? (??????? ???? #)

??????? ??????
#Protocol 2, 1
??????????????? ? ???????? ??:
Protocol 2

???? ?? ????????? ?????????? ?? ????????? SSH1, ??? ???????????? ???????????.

? WHM ???????? ??????, ??????? ?????? ???????????? ? ???????? ?????????????????, ????????? ????????????? ??? ????????????, ( ??????? ADMIN ? TEST), ????? ???-?? ????? De37?jT_9, ????? ????????? SSH ??? ????? ?????, ??????? ?:

Server Setup
????? ?:
Manage Wheel Group Users

? ??????? ?????? ????? ??? ????? Wheel Group.

????? ??????:

pico -w /etc/ssh/sshd_config

??????
#PermitRootLogin yes
??????????????? ? ???????? ??:
PermitRootLogin no

?????? ????????????? ????? SSH, ????????? ???????:
/etc/rc.d/init.d/sshd restart

?????? ????????? ???????? ??????????????? ???????????? ??? ?????? ???????, ? ??????????? ????????????? ??????????? ???????????.
??? ???????? ? ??????? ?? ?????? ?????? ???????? ?????? ??? ???????????????? ???????????? ?? ????? ???????, ????? ?????? su - (?????? su -, ? ?? su-), ????? root ??????.

??? ?????? ?????? ???????:
exit
? ??????? ENTER

2. ????????? ????????? ?? ????? ? ROO? ?????? ?? ????? ???????:
?????????????? ????

.bash_profile
? ?????????? ????????????? - ? ?????? ??????
/root

????????? ????????:

su -
cd
pico .bash_profile

? ? ????? ????? ????? ??????? ??????:
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access on Server #1" admin@XXXXXXX.com

??? admin@XXXXXXX.com - ??? ????? ?? ????? ???? ??????? (??? ????????????? ??? ??????????? ?????????? ? ????????? ? ?????????)
?????????, ????? ??????????
CTRL+X
????? – Y
? ??????? – ENTER.

?????? ??? ?????? ROOT ?????? ????? ???????? ??? ????????? ?? ???????? ?????.

??????????? ???????.
????????? ??????????? ???????, ??????????? ????????? ???????????? - ?????????? ?????


?????: Admin on Nov 18, 04 | 5:46 pm |

??????

Powered by pMachine