1
Ich versuche, Python subprocess ssh mit dem folgenden Befehl:Nicht in der Lage Datei mit subprocess mit Identität SSH
subprocess.Popen(["ssh", "-i %s/.ssh/anotherIdentity" % os.path.expanduser("~"), " [email protected]%s" % host, command],
shell=False,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
Ich erhalte die Fehlermeldung:
['Warning: Identity file /Users/saurabh.araiyer/.ssh/anotherIdentity not accessible: No such file or directory.\n', 'Permission denied (publickey).
Die Identitätsdatei vorhanden ist in der Position, Was könnte der Grund dafür sein?
Python-Version: 2.7.10 in Mac