ci: add temporary VPS fingerprint helper
This commit is contained in:
parent
2a77fcd0dd
commit
1c1e7e08b1
|
|
@ -0,0 +1,18 @@
|
|||
name: VPS Host Fingerprint
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
fingerprint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Read VPS RSA host fingerprint
|
||||
uses: appleboy/ssh-action@v1.2.2
|
||||
with:
|
||||
host: ${{ secrets.VPS_HOST }}
|
||||
username: root
|
||||
key: ${{ secrets.VPS_SSH_KEY }}
|
||||
script: |
|
||||
set -e
|
||||
ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub -E sha256 | awk '{print $2}'
|
||||
Loading…
Reference in New Issue