fix: add private key to home directory
This commit is contained in:
@@ -68,14 +68,8 @@ jobs:
|
||||
# printf "%s" "${{ secrets.AZURE_SSH_PRIVATE_KEY }}" > ~/.ssh/azure
|
||||
# chmod 600 ~/.ssh/azure
|
||||
# mkdir -p ~/.ssh
|
||||
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY_BASE64 }}" | base64 -d > /skylab
|
||||
chmod 600 /skylab
|
||||
|
||||
- name: Debug SSH key
|
||||
run: |
|
||||
head -n 5 /skylab
|
||||
file /skylab
|
||||
ssh -i /skylab -o StrictHostKeyChecking=no testuser@192.168.1.19 "echo SSH connection OK"
|
||||
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY_BASE64 }}" | base64 -d > ~/.ssh/skylab
|
||||
chmod 600 ~/.ssh/skylab
|
||||
|
||||
- name: Install Ansible
|
||||
shell: bash
|
||||
|
Reference in New Issue
Block a user