Skip to content

Commit 71d05a2

Browse files
committed
try to use sshfp
1 parent c66cd7f commit 71d05a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ jobs:
3333
with:
3434
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
3535

36-
- name: Add remote host to known_hosts
36+
- name: Enable SSHFP checking
3737
run: |
3838
mkdir -p ~/.ssh
39-
echo "trinity.hacklab.fi ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEbuUzPWSkuCC/iAE2KgxnCO22+9MLdTfTGLiVFOC6gm" >> ~/.ssh/known_hosts
39+
echo "Host trinity.hacklab.fi
40+
VerifyHostKeyDNS yes
41+
StrictHostKeyChecking yes" >> ~/.ssh/config
4042
4143
- name: Deploy to server via rsync
4244
run: |

0 commit comments

Comments
 (0)