Linux
SSH Trust login 설정
은이종
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으로 설정해야함