우분투 14.04 서버에 gitlab이 설치되어 있고 다른 서버(동일 IP)인 Ubuntu 14.04로 이동 중입니다. 사용자가 가지고 있는 키를 계속 사용할 수 있도록 호스트 키를 전송하고 싶습니다.
디렉토리를 복사하고 전송했지만 /etc/ssh
새 서버에서 동일한 디렉토리의 전체 내용을 바꿔야 할지, 아니면 일부 특정 파일만 바꿔야 할지 잘 모르겠습니다.
디렉토리에는 다음이 포함됩니다.
- 모듈러스
- ssh_config
- ssh_config.lwidentity.orig
- sshd_config
- sshd_config.lwidentity.orig
- ssh_host_dsa_key
- ssh_host_dsa_key.pub
- ssh_host_ecdsa_key
- ssh_host_ecdsa_key.pub
- ssh_host_ed25519_key
- ssh_host_ed25519_key.pub
- SSH_host_rsa_key
- ssh_host_rsa_key.pub
- ssh_import_id.
답변1
그래서 모든 ssh_host_*
파일을 (포함 여부에 관계없이 .pub
) 복사했는데 그게 효과가 있는 것 같았습니다.
권한과 소유권이 다음 답변에 표시된 대로인지 확인했습니다.