Skip to content

Commit

Permalink
fix: switch to SSH key authentication for security
Browse files Browse the repository at this point in the history
- Remove hardcoded user password from environment variables
- Replace hardcoded password with a private key for SSH authentication

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Jun 5, 2024
1 parent 5a8776f commit 0c7561b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ssh-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ jobs:
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
-e SUDO_ACCESS=true \
-e PASSWORD_ACCESS=true \
-e USER_PASSWORD=password \
-e USER_NAME=linuxserver.io \
--restart unless-stopped \
lscr.io/linuxserver/openssh-server:latest
Expand Down Expand Up @@ -465,7 +464,7 @@ jobs:
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
password: password
key: ${{ env.PRIVATE_KEY }}
port: 2222
script_stop: true
request_pty: true
Expand Down

0 comments on commit 0c7561b

Please sign in to comment.