|
|
|
|
|
|
ۼ : 06-08-01 16:21
۾ :
ȸ : 14,236
|
- solaris
Ű ġ ġ. - /usr/loca/etc
(file>root)/usr/local/etc# ls ssh_config ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_key ssh_host_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub sshd_config
- vi sshd_config
SSH ϰ Ǹ Ʈ root ȴ. SSH ȯ漳 sshd_config ԵǸ ߰ PermitRootLogin ̶ ɼ ִµ κ yes Ǿִ. ּó κ ְ no ϸ root ȵȴ.
# Authentication: #LoginGraceTime 2m PermitRootLogin yes ------- > no #StrictModes yes #MaxAuthTries 6
- ssh ũƮ .
(file>root)/usr/local/etc# /etc/init.d/sshd stop (file>root)/usr/local/etc# /etc/init.d/sshd start (file>root)/usr/local/etc#
- Ȯ
[root@test ssh]# ssh -l root 192.168.0.10 root@192.168.0.10's password: Permission denied, please try again. root@192.168.0.10's password: Permission denied, please try again. root@192.168.0.10's password: Permission denied (publickey,password,keyboard-interactive). [root@test ssh]#
- linux
⺻ ġ ġ.
/etc/ssh
moduli ssh_host_dsa_key ssh_host_key ssh_host_rsa_key sshd_config ssh_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
- vi sshd_config
#LoginGraceTime 600 PermitRootLogin yes ------ > no ּ . #StrictModes yes
- ssh ũƮ .
[root@test ssh]# /etc/init.d/sshd stop sshd () :[ Ȯ ] [root@test ssh]# /etc/init.d/sshd start sshd :[ Ȯ ] [root@test ssh]#
- Ȯ
(file>root)/usr/local/etc# ssh -l root 192.168.0.212 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is cf:5e:93:01:34:09:0b:bd:cf:cf:0d:2d:63:67:b9:f9. Please contact your system administrator. Add correct host key in /.ssh/known_hosts to get rid of this message. Offending key in /.ssh/known_hosts:8 RSA host key for 192.168.0.212 has changed and you have requested strict checking. Host key verification failed. (file>root)/usr/local/etc#
|
|
|
|
|
|
|
|
|