From 772964334ecbe8be04d22c922226dc16a5d58282 Mon Sep 17 00:00:00 2001 From: CIzz22 Date: Mon, 13 Jan 2025 04:47:19 +0000 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e3ba12..7403e4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,12 +10,9 @@ pipeline { stage('Test SSH Connection') { steps { sshagent(['backend-server-digitaltwin']) { // Use the credential ID you created - sh ''' - # Print SSH key info - ssh-add -l - - # Try verbose SSH connection - ssh -v -o StrictHostKeyChecking=no aimo@192.168.1.82 'echo test' + sh ''' + # Extract public key from agent + ssh-add -L ''' } }