Add safe SSH key debugging step
This commit is contained in:
parent
fc1e359db9
commit
c43085761b
@ -18,6 +18,12 @@ jobs:
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y ansible
|
apt-get install -y ansible
|
||||||
|
|
||||||
|
- name: Verify SSH key format
|
||||||
|
run: |
|
||||||
|
echo "File size: $(wc -c < ~/.ssh/id_ed25519) bytes"
|
||||||
|
echo "First line: $(head -n 1 ~/.ssh/id_ed25519)"
|
||||||
|
echo "Last line: $(tail -n 1 ~/.ssh/id_ed25519)"
|
||||||
|
|
||||||
- name: Set up SSH private key
|
- name: Set up SSH private key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
@ -25,6 +31,12 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
|
echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
|
||||||
|
|
||||||
|
- name: Verify SSH Key Format
|
||||||
|
run: |
|
||||||
|
echo "File size: $(wc -c < ~/.ssh/id_ed25519) bytes"
|
||||||
|
echo "First line: $(head -n 1 ~/.ssh/id_ed25519)"
|
||||||
|
echo "Last line: $(tail -n 1 ~/.ssh/id_ed25519)"
|
||||||
|
|
||||||
- name: Set up vault password
|
- name: Set up vault password
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.VAULT_PASSWORD }}" > ansible/vault_pass
|
echo "${{ secrets.VAULT_PASSWORD }}" > ansible/vault_pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user