|
News,
Internal,
Projects,
Home Software, Support, Documentation |
On Wed, Apr 16, 2003 at 01:20:14PM +0900, 김유진 wrote: >> A라는 서버에서 B라는 서버로 인증키를 가지고 ROOT 계정으로 접속하려고 하는데 >> >> 먼저 A라는 서버에서 루트 계정으로ssh-keygen -d라는 명령으로 >> id_dsa 파일과 id_dsa.pub라는 파일을 /root/.ssh 디렉토리에 생성했습니다. >> >> 그래가지고 B라는 서버에서 /root/.ssh 디렉토리 안에 authorized_keys2 파일 >> 내용을 >> 아까 A라는 서버에서 생성한 인증키 내용을 저장하고 >> A에서 B로 ssh 연결을 테스트 해보려고 ssh root@xxxxx 을 하니까 >> >> Connection closed by xxx.xxx.xxx.xxx >> 와같은 메시지만 뜹니다. >> >> 무엇이 잘못 됐나요? >> 물론 sshd_config에서 PermitRootLogin yes 라고 설정해 주고 ssh대몬 리스타트 >> 했습니다. >> Login하려는 사용자의 $HOME/.ssh/authorized_keys 파일에 원격 사용자의 public key를 가지고 있어야 합니다. 위에서는 파일 이름을 잘못 지정한것 같습니다. (authorized_keys2 -> authorized_keys) /tmp/id_dsa.pub 라는 접속자의 public key파일이 있고 root를 허용한다면 #cp /tmp/id_dsa.pub /root/.ssh/authorized_keys #chown root:wheel /root/.ssh/authorized_keys #chmod 0400 /root/.ssh/authorized_keys #/etc/rc.d/sshd restart 정도면 될겁니다. -- ============================================================ // Korea Telecom Internet Solutions, Inc. // FreeBSD/Linux Professional Consulting/Tech. Support // // Pyun YongHyeon // // WWW: http://www.kt-is.co.kr/ // // TEL: +82-2-597-0600 // FAX: +82-2-581-2983 ============================================================ -- Please look and take part in KFUG FAQ: <http://www.kr.freebsd.org/FAQ-kr/> To Unsubscribe: send mail to majordomo@xxxxxxxxxxxxxx with "unsubscribe questions" in the BODY of the message
|
Copyright © 1998-2005 Korea FreeBSD Users Group. All rights reserved. webmaster at kr.FreeBSD.org $Date: 2003/04/30 23:01:23 $ |
|