ssh-copy-id 시 Permission Denied 문제
2025.01.30 17:43 작성
```
ssh-copy-id worker1
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/ubuntu/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
ubuntu@worker1: Permission denied (publickey).
```
EC2 로 시험환경을 만들고 있는데 ssh-copy-id 명령어 사용시 Permission Denied 문제가 발생하고 있습니다.
어디서 문제가 발생한 것인지 감이 잘 오지 않네요. 도움주시면 감사하겠습니다.