#16 Run ssh more explicitly
This commit is contained in:
parent
a1038ff2e4
commit
24714471d5
@ -19,16 +19,15 @@ jobs:
|
|||||||
- name: Configure SSH
|
- name: Configure SSH
|
||||||
run: |
|
run: |
|
||||||
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
||||||
chmod 0600 /tmp/key
|
chmod 600 /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
|
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
|
||||||
ssh-keyscan 192.168.1.1 > ~/.ssh/known_hosts
|
ssh-keyscan 192.168.1.1 > ~/.ssh/known_hosts
|
||||||
chmod 0600 ~/.ssh/known_hosts
|
chmod 0600 ~/.ssh/known_hosts
|
||||||
- name: Print running VyOS version
|
- name: Connect to VyOS
|
||||||
run: |
|
run: |
|
||||||
whoami
|
ssh -i /tmp/key vyos@192.168.1.1
|
||||||
./vyos.sh op show system image
|
|
||||||
|
|
||||||
# - name: SSH into host
|
# - name: SSH into host
|
||||||
# uses: appleboy/ssh-action@v1.1.0
|
# uses: appleboy/ssh-action@v1.1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user