SSH Root 접속 제한

#vi /etc/ssh/sshd_config

/etc/ssh/sshd_config 파일을 열면

#PermitRootLogin yes 라는 부분을
PermitRootLogin no 로 고칩니다.
앞에 주석인 #을 지우고 yes를 no로 . . .


생략
.
#LoginGraceTime 2m

PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
.
생략


재시작 하고 나서부터 적용 되더군요

크리에이티브 커먼즈 라이선스
Creative Commons License
블로그코리아에 블UP하기 믹시
Posted by 슈퍼스타 x2chi

트랙백 주소 http://x2chi.com/trackback/325 관련글 쓰기

  1. 삭제

    ssh로 비번없이 로그인하기

    2008/08/07 11:22 | Tracked from 김성국 블로그

    서버쪽에서 1. 포트설정: /etc/ssh/sshd_config #port 220 2. 서비스 재시작 /etc/init.d/ssh restart 클라이언트 1. ssh-keygen 2. ssh-copy-id -i .ssh/id_rsa.pub '-p 220 server_user_name@server_ip' 끝 이렇게 했는데도 안되는경우.... 서버쪽에서 /etc/ssh/blacklist.*** 이런 파일이 있다. 이걸 없애버리면 된다. 이것때문에 몇시..

댓글을 달아 주세요