ssh username@hostIP works in Ubuntu.
but I got error when I execute remote ssh on Github actions.
-workflows file
name: 'build-and-deploy'
on:
push:
branches:
- hanul
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
- name: execute remote ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
sudo ufw status
whoami
git pull origin master
- result
dial tcp :: i/o timeout
*I set the ports to the same as in the sshd_config
New contributor
hanul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.