|
|
|
@ -10,12 +10,9 @@ pipeline {
|
|
|
|
stage('Test SSH Connection') {
|
|
|
|
stage('Test SSH Connection') {
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
|
sshagent(['backend-server-digitaltwin']) { // Use the credential ID you created
|
|
|
|
sshagent(['backend-server-digitaltwin']) { // Use the credential ID you created
|
|
|
|
sh '''
|
|
|
|
sh '''
|
|
|
|
# Print SSH key info
|
|
|
|
# Extract public key from agent
|
|
|
|
ssh-add -l
|
|
|
|
ssh-add -L
|
|
|
|
|
|
|
|
|
|
|
|
# Try verbose SSH connection
|
|
|
|
|
|
|
|
ssh -v -o StrictHostKeyChecking=no aimo@192.168.1.82 'echo test'
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|