Skip to content

Commit

Permalink
Fixed hardcoded user in scp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Dalla Santa committed Feb 8, 2021
1 parent 5a27574 commit 7d22a8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# [Unreleased]


## [v1.0.3] - 2021-02-08

### Fixed
- Hardcoded user "ubuntu" in scp.

## [v1.0.2] - 2020-12-21

### Fixed
Expand All @@ -18,5 +23,7 @@


[unreleased]: https://github.com/marcodallasanta/ssh-scp-deploy/compare/main...development
[v1.0.3]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.3
[v1.0.2]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.2
[v1.0.1]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.1
[v1.0.0]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.0
2 changes: 1 addition & 1 deletion with_key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ ! -z "$PRE_UPLOAD" ]; then
fi

echo "🚚 Uploading via scp..." &&
scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ubuntu@${INPUT_HOST}:"${INPUT_REMOTE}" &&
scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ${INPUT_USER}@${INPUT_HOST}:"${INPUT_REMOTE}" &&
echo "🙌 Uploaded via scp";

POST_UPLOAD=${INPUT_POST_UPLOAD}
Expand Down
2 changes: 1 addition & 1 deletion with_pass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ ! -z "$PRE_UPLOAD" ]; then
fi

echo "🚚 Uploading via scp..." &&
sshpass -p ${PASSWORD} scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ubuntu@${INPUT_HOST}:"${INPUT_REMOTE}" &&
sshpass -p ${PASSWORD} scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ${INPUT_USER}@${INPUT_HOST}:"${INPUT_REMOTE}" &&
echo "🙌 Uploaded via scp";

POST_UPLOAD=${INPUT_POST_UPLOAD}
Expand Down

0 comments on commit 7d22a8a

Please sign in to comment.