#16 Hacking known_hosts
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
This commit is contained in:
parent
fed15a2df2
commit
8c2ab79a8d
@ -20,6 +20,9 @@ jobs:
|
|||||||
chmod 0600 /tmp/key
|
chmod 0600 /tmp/key
|
||||||
ssh-keygen -y -f /tmp/key > /tmp/key.pub
|
ssh-keygen -y -f /tmp/key > /tmp/key.pub
|
||||||
ssh-keygen -l -E sha256 -f /tmp/key.pub
|
ssh-keygen -l -E sha256 -f /tmp/key.pub
|
||||||
|
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
|
||||||
|
ssh-keyscan 192.168.1.1 > ~/.ssh/known_hosts
|
||||||
|
chmod 0600 ~/.ssh/known_hosts
|
||||||
alias ssh='ssh -i /tmp/key -o StrictHostKeyChecking=accept-new'
|
alias ssh='ssh -i /tmp/key -o StrictHostKeyChecking=accept-new'
|
||||||
- name: Print running VyOS version
|
- name: Print running VyOS version
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user