Closed xiaoxin-sky closed 1 year ago
Try using latest version @v4.1.8
, and add env var:
SCRIPT_BEFORE: 'ls'
thank you for your reply, I add env var. But it also show network is unreachable.
Run easingthemes/ssh-deploy@v4.1.8
[DIR] Creating /home/runner/.ssh dir in workspace root
✅ [DIR] dir created.
[FILE] writing /home/runner/.ssh/known_hosts file ... 0
✅ [SSH] known_hosts file ensured /home/runner/.ssh
✅ [DIR] /home/runner/.ssh dir exist
[FILE] writing /home/runner/.ssh/deploy_key_***_[16](https://github.com/xiaoxin-sky/dodoting/actions/runs/4268539767/jobs/7431098780#step:6:17)77302966383 file ... 3244
✅ [SSH] key added to `.ssh` dir /home/runner/.ssh deploy_key_***_1677302966383
[SSH] Adding host to `known_hosts` .... *** /home/runner/.ssh/known_hosts
connect (`***'): Network is unreachable
connect (`***'): Network is unreachable
connect (`***'): Network is unreachable
connect (`***'): Network is unreachable
connect (`***'): Network is unreachable
❌ [SSH] Adding host to `known_hosts` ERROR *** Command failed: ssh-keyscan -p [22](https://github.com/xiaoxin-sky/dodoting/actions/runs/4268539767/jobs/7431098780#step:6:23) -H *** >> /home/runner/.ssh/known_hosts
✅ [SSH] Adding host to `known_hosts` DONE *** /home/runner/.ssh/known_hosts
✅ [DIR] /home/runner/work/dodoting/dodoting dir exist
[FILE] writing /home/runner/work/dodoting/dodoting/local_ssh_script-before.sh file ... 2
Executing remote script: ssh -i /home/runner/.ssh/deploy_key_***_167730[29](https://github.com/xiaoxin-sky/dodoting/actions/runs/4268539767/jobs/7431098780#step:6:30)66383 ***@***
⚠️ [CMD] Remote script failed: Command failed: DEBIAN_FRONTEND=noninteractive ssh -p 22 -i /home/runner/.ssh/deploy_key_***_1677[30](https://github.com/xiaoxin-sky/dodoting/actions/runs/4268539767/jobs/7431098780#step:6:31)2966383 -o StrictHostKeyChecking=no ***@*** 'RSYNC_STDOUT="" bash -s' < local_ssh_script-before.sh
ssh: connect to host *** port 22: Network is unreachable
ssh: connect to host *** port 22: Network is unreachable
⚠️ [CMD] Remote script failed: Command failed: DEBIAN_FRONTEND=noninteractive ssh -p 22 -i /home/runner/.ssh/deploy_key_***_1677302966383 -o StrictHostKeyChecking=no ***@*** 'RSYNC_STDOUT="" bash -s' < local_ssh_script-before.sh
ssh: connect to host *** port 22: Network is unreachable
Then this sounds like issue related to your server, since first script is just ssh
which works with IPV6.
Try locally ssh connection and ping also.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
I get the
Network is unreachable
log, I think it because my server is use ipv6, But I'm not sure.