[root@ns♥BunnyCom♥~]# vi /etc/ssh/sshd_config

 #### 지정된 포트로 접속시 사용가능 #####
Port 22
###### 프로톨콜 방식을 결정 한다. #######
Protocol 2,1
# Protocol 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
#LoginGraceTime 2m
##### No<ROOT접속불가> Yes<ROOT접속허가> #####
PermitRootLogin yes
UsePrivilegeSeparation yes
UsePAM yes

[root@ns♥BunnyCom♥~]# service sshd restart
[root@ns♥BunnyCom♥~]# su - bunny
[bunny@ns♥Bunny♥~]# ssh-keygen  => 인증키 설정
[bunny@ns♥Bunny♥~]# ssh -l root xxxxxxxxxxx.pe.kr
The authenticity of host 'xxxxxxxxx.pe.kr (xxx.xxx.xxx.xxx)' can't be established.
RSA key fingerprint is 89:1a:xx:ad:04:xx:d2:bb:xx:95:13:62:f9:dx:x0:f2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxxxxxxxx.pe.kr (xxx.xxx.xxx.xxx)' (RSA) to the list of known hosts.
Address xxx.xxx.xxx.xxx maps to ns.xxxxxxxxxx.pe.kr, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
root@xxxxxxxxx.pe.kr's password:
Last login: Mon Mar  2 16:12:38 2015 from 210.10.xx.xx

 

+ Recent posts