1. 복사
2. sudo 권한부여
3. 소유권변경
4. 권한변경
[ec2-user@hadoop01 .ssh]$ sudo cp authorized_keys /home/hadoop/.ssh/authorized_keys [ec2-user@hadoop01 .ssh]$sudo vim /etc/sudoers [ec2-user@hadoop01 .ssh]$su hadoop [hadoop@hadoop01 .ssh]$ sudo chown hadoop authorized_keys [hadoop@hadoop01 .ssh]$ sudo chgrp hadoop authorized_keys [hadoop@hadoop01 ~]$ chmod 700 .ssh [hadoop@hadoop01 .ssh]$ chmod 600 authorized_keys
참조 : connectingByNewAccountEC2
댓글 없음 :
댓글 쓰기