CANNOT execute commands in Windows host
- Dominant language
- Go
- Stars
- 314
- Forks
- 79
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
Hi everyone,
I'm having an issue with a Drone CI pipeline step. I'm trying to run some commands on a remote Windows server using the appleboy/drone-ssh image, but I'm encountering an issue where some commands are not executing.
Here's an example step that's failing:
```
- name: '部署到Web'
image: appleboy/drone-ssh
settings:
host: 192.168.50.249
port: 22
username: administrator
password:
from_secret: pws_web
script:
- echo "Web Master"
- ls
```
When I run this step, the echo command works correctly and outputs "Web Master" to the console, but the ls command does not seem to have any effect.
I've tried different commands, such as dir, but they all exhibit the same behavior. I know that the SSH connection is working because I'm able to run echo without any issues.
Can someone please point me in the right direction on how to troubleshoot this issue? I'm not sure if this is an issue with the SSH connection or with the command that I'm running.
Thank you in advance for any help you can provide.
Best regards,
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the shown Drone pipeline using the appleboy/drone-ssh image against the Windows host, comparing the working echo command with ls and dir. Check the remote command environment and how the script entries are handled; done means identifying why the listing commands produce no visible effect and documenting a confirmed resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, devops, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100