1. root 계정 암호 설정
$ sudo passwd root
를 입력하고 설정할 암호를 입력하고 확인 입력까지 한다.
2. root 계정으로 변환
$ su
3. 접속시 root 계정을 사용하기
3-1 우분투(Ubuntu) 서버에 openssh가 설치되어 있지 않다면 설치한다.
$ apt-get install openssh-server
3-2 서버에 접속후 다음을 입력한다.
$ vi /etc/ssh/sshd_config
4. "#PermitRootLogin without-password "와
"PasswordAuthentication no" 를 찾아 'a'를 눌러 수정모드로 전환하여
각각 다음과 같이 수정한다.
4-1 "#PermitRootLogin without-password "
#을 제거하고" PermitRootLogin yse " 로 수정
4-2 "PasswordAuthentication no"
no 를 PasswordAuthentication yes 로 수정
5. 모든 수정이 끝나면 ESC 키를 누른후 :wq 를 입력하여 저장 한다.
6. ssh를 재시작한다.
$ service ssh restart
www.woobi.net
welcome