Bonjour,
je cherche à lancer un exécutable via une connexion SSH depuis un script python sur un serveur IIS.
Mon problème est tout bête, je n'arrive pas à initialiser la connexion SSH.
J'ai le message:
"The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's key fingerprint is: ssh-rsa 2048 fe:9e:d8:36:38:f4:70:31:78:cd:54:12:0c:cb:ae:11 If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting. If you want to carry on connecting just once, without adding the key to the cache, enter "n". If you do not trust this host, press Return to abandon the connection. Store key in cache? (y/n) Connection abandoned."
J'ai pourtant initialisé la connexion avec le user utilisé pour s'authentifier sur le site Web.
Je pense que mon problème est lié au fait que IIS utilise malgré tout un user particulier (a priori "SERVICE RESEAU" car le processus python.exe appartient à ce user dans le gestionnaire de tâches quand je lance la commande)
Savez-vous comment forcer IIS à utiliser un autre user pour lancer la commande SSH ?
Ou bien est-il possible de se logger en SERVICE RESEAU pour initialiser le connexion SSH ?
Merci de votre aide.
Partager