|
|
|
@ -11,8 +11,11 @@ pipeline {
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
|
sshagent(['backend-server-digitaltwin']) { // Use the credential ID you created
|
|
|
|
sshagent(['backend-server-digitaltwin']) { // Use the credential ID you created
|
|
|
|
sh '''
|
|
|
|
sh '''
|
|
|
|
# Test SSH connection
|
|
|
|
# Print SSH key info
|
|
|
|
ssh -o StrictHostKeyChecking=no ${SERVER_USER}@${SERVER_IP} 'echo "SSH Connection Successful!" && hostname && date'
|
|
|
|
ssh-add -l
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Try verbose SSH connection
|
|
|
|
|
|
|
|
ssh -v -o StrictHostKeyChecking=no aimo@192.168.1.82 'echo test'
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|