2014. 7. 8. 13:46
패스워드 없이 SSH나 scp 연결할 때,
또는 Hadoo Cluster 설정 시 SSH Trust login 설정이 필요하다.
--------------------------------------------------------
sshd 재시작
*. 유의점
또는 Hadoo Cluster 설정 시 SSH Trust login 설정이 필요하다.
A > B 로 Trust설정
1. B 서버 sshd conf 허용설정
/etc/ssh/sshd_config 주석제거
---------------------------------------------------------------------------
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication yes
---------------------------------------------------------------------------
--------------------------------------------------------
sshd 재시작
service sshd restart
2. A 서버
su - memex
scp /app/memex/.ssh/scp id_dsa.pub memex@172.21.0.142:/app/memex/.ssh/authorized_keys
*. 유의점
authorized_keys
id_dsa.pub
파일 그룹권한에 W 권한이 있으면 안된다
700이나 750으로 설정해야함
'Linux' 카테고리의 다른 글
SSL 인증서 만료 날짜 확인하기 (0) | 2014.09.18 |
---|---|
Linux DSR구조에서 Loopback 설정하기 (0) | 2014.07.16 |
JDK와 JRE 구분 (0) | 2014.04.24 |
hpacucli 간단한 명령어 (0) | 2014.01.17 |
쉘, 명령어 창 기본세팅 (0) | 2013.12.06 |