Skip to content

Commit 0c7561b

Browse files
committedJun 5, 2024··
fix: switch to SSH key authentication for security
- Remove hardcoded user password from environment variables - Replace hardcoded password with a private key for SSH authentication Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent 5a8776f commit 0c7561b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎.github/workflows/ssh-server.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ jobs:
368368
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
369369
-e SUDO_ACCESS=true \
370370
-e PASSWORD_ACCESS=true \
371-
-e USER_PASSWORD=password \
372371
-e USER_NAME=linuxserver.io \
373372
--restart unless-stopped \
374373
lscr.io/linuxserver/openssh-server:latest
@@ -465,7 +464,7 @@ jobs:
465464
with:
466465
host: ${{ env.REMOTE_HOST }}
467466
username: linuxserver.io
468-
password: password
467+
key: ${{ env.PRIVATE_KEY }}
469468
port: 2222
470469
script_stop: true
471470
request_pty: true

0 commit comments

Comments
 (0)
Please sign in to comment.