appleboy / appleboy/ssh-action
why I get an error :"Process exited with status 1"
- Dominant language
- Shell
- Stars
- 6.2k
- Forks
- 679
- Avg merge
- 35m
- Merged PRs (30d)
- 1
Description
```yml
- name: Clean target directory on server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.ALIYUN_HOST }}
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
port: ${{ secrets.ALIYUN_SSH_PORT }}
script: |
Remove-Item -Path "C:\www\app\*" -Recurse -Force
echo "done !!!!!!!!!!!!!!!!!!!!!!!"
debug: true
```
the result is:
======CMD======
Remove-Item -Path "C:\www\app\*" -Recurse -Force
echo "done !!!!!!!!!!!!!!!!!!!!!!!"
======END======
'Remove-Item' �����ڲ����ⲿ���Ҳ���ǿ����еij���
2025/03/17 01:49:28 Process exited with status 1
�����������
Error: Process completed with exit code 1.
What is the garbled text here, and how can I check the actual error message inside? What needs to be configured?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the workflow step shown in the issue and the ssh-action documentation for remote command execution and output handling. Reproduce the command, inspect which shell runs it and how its output is encoded, and determine what configuration exposes the underlying error. Done means the garbled message is decoded and the cause of exit status 1 is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, powershell, shell
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100