Skip to content

Commit acd41e5

Browse files
committed
ci: enhance SSH job testing with varied key/password scenarios
- Correct the name of the SSH job from "ssh by private" to "ssh by private key" - Add a job to test SSH with the correct key but wrong password - Add a job to test SSH with the correct password but wrong key Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent da612c8 commit acd41e5

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/ssh-server.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,31 @@ jobs:
8282
echo "======================================"
8383
sleep 2
8484
85-
- name: ssh by private
85+
- name: ssh by private key
8686
uses: appleboy/[email protected]
8787
with:
8888
host: ${{ env.REMOTE_HOST }}
8989
username: linuxserver.io
9090
key: ${{ env.PRIVATE_KEY }}
9191
port: 2222
9292
script: whoami
93+
94+
- name: wrong password but correct key
95+
uses: appleboy/[email protected]
96+
with:
97+
host: ${{ env.REMOTE_HOST }}
98+
username: linuxserver.io
99+
password: "abcdef"
100+
key: ${{ env.PRIVATE_KEY }}
101+
port: 2222
102+
script: whoami
103+
104+
- name: correct password but wrong key
105+
uses: appleboy/[email protected]
106+
with:
107+
host: ${{ env.REMOTE_HOST }}
108+
username: linuxserver.io
109+
password: password
110+
key: password
111+
port: 2222
112+
script: whoami

0 commit comments

Comments
 (0)