Skip to content

Commit 4e906ea

Browse files
committed
Agregamos el ssh-debug dos
1 parent e730eea commit 4e906ea

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/ssh-debug.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SSH Debug
1+
name: SSH Debug (Base64)
22

33
on:
44
workflow_dispatch:
@@ -8,22 +8,22 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- name: Mostrar fingerprint de la clave privada usada
11+
- name: Decodificar clave privada desde secreto base64
1212
run: |
13-
echo "$DROPLET_SSH_KEY" > id_rsa
13+
echo "$DROPLET_SSH_KEY_B64" | base64 -d > id_rsa
1414
chmod 600 id_rsa
15-
echo "📎 Fingerprint de la clave cargada en secreto:"
15+
echo "📎 Fingerprint de la clave cargada en GitHub:"
1616
ssh-keygen -lf id_rsa
1717
env:
18-
DROPLET_SSH_KEY: ${{ secrets.DROPLET_SSH_KEY }}
18+
DROPLET_SSH_KEY_B64: ${{ secrets.DROPLET_SSH_KEY_B64 }}
1919

20-
- name: Probar conexión SSH básica
21-
uses: appleboy/ssh-action@v1.0.0
22-
with:
23-
host: ${{ secrets.DROPLET_IP }}
24-
username: ${{ secrets.DROPLET_USER }}
25-
key: ${{ secrets.DROPLET_SSH_KEY }}
26-
script: |
27-
echo "✅ Conexión SSH desde Actions funcionando correctamente"
20+
- name: Conexión SSH directa (sin appleboy)
21+
run: |
22+
echo "⏳ Intentando conexión manual..."
23+
ssh -o StrictHostKeyChecking=no -i id_rsa root@${{ secrets.DROPLET_IP }} "
24+
echo '✅ Conexión directa exitosa desde GitHub Actions'
2825
whoami
2926
uptime
27+
"
28+
env:
29+
DROPLET_SSH_KEY_B64: ${{ secrets.DROPLET_SSH_KEY_B64 }}

0 commit comments

Comments
 (0)