DevOps
[Github Action] ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
fladi
2023. 8. 6. 00:34
728x90
문제상황
- 깃허브 액션으로 NCP에 배포동화를 하는 도중 발생
- host, username, password, port 모두 잘 넣어줬는데도 해당 오류가 발생
문제해결
- name: Execute remote SSH commands to restart server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: username
password: ${{ secrets.DEPLOYMENT_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
script: |
sudo systemctl stop myapp
...
- username을 제대로 넣어주지 않아 발생함
- 수정하니 잘 돌아가는 것을 확인할 수 있었다
728x90