Automation in the context of multifactor authentication/fr: Difference between revisions

Jump to navigation Jump to search
Created page with "# If the host is not known, it is OK. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"
(Created page with "ssh.close() # ==================================================================================================== </source> Ceci établit la connexion au noeud d'automatisation de '''Graham''' avec une clé inscrite dans le portail CCDB et exécute la commande <code>ls -l</code> pour obtenir la liste des fichiers. La liste est ensuite affichée à l'écran.")
(Created page with "# If the host is not known, it is OK. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())")
Line 173: Line 173:
ssh = paramiko.SSHClient()
ssh = paramiko.SSHClient()


<div lang="en" dir="ltr" class="mw-content-ltr">
# If the host is not known, it is OK.
# If the host is not known, it is OK.
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
</div>


ssh.connect(hostname=host, username=user, pkey=key)
ssh.connect(hostname=host, username=user, pkey=key)
rsnt_translations
56,430

edits

Navigation menu