본문 바로가기

Server Dev

우분투 ssh root 접속가능하도록 설정 변경하기

1. sudo -s 로 root권한을 얻는다.


2. vi /etc/ssh/sshd_config 파일을 편집한다.


3. 아래 두개를 주석처리한다. 앞에 #붙이면됨 사진 참고

PermitRootLogin without-password

StrictModes yes

4. service ssh restart

5. 끝 이제 ssh에서 root로 접속이 된다.