appleboy / appleboy/scp-action

When user default shell is set to RSSH, the action fails

Open
#61 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1.6k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

Remote users which are restricted in there operations, like most users which only need to do SCP operations, are unable to do SCP operations.

STEPS TO REPRODUCE

  1. On the remote machine
    1.1. Create a user for remote access
    1.2. Ensure it's default shell is set to /usr/bin/rssh
  2. Run the action

EXPECTED RESULT
The same result as running SCP command while doing a manual upload

ACTUAL RESULT
The action fails with

drone-scp error: error copy file to dest: ***, error message: Process exited with status 1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the GitHub Action failure with a remote user whose default shell is /usr/bin/rssh, then compare it with a manual SCP upload. Done means the action successfully performs the same SCP operation for that restricted user and retains existing behavior for ordinary SSH users.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.