Key handling — Paramiko documentation
docs.paramiko.org › en › stablename of this private key type, in SSH terminology, as a str (for example, "ssh-rsa"). load_certificate ( value ) ¶ Supplement the private key contents with data loaded from an OpenSSH public key ( .pub ) or certificate ( -cert.pub ) file, a string containing such a file, or a Message object.
Paramiko example using private key · GitHub
gist.github.com › batok › 2352501Paramiko example using private key Raw paramiko_example.py import paramiko k = paramiko. RSAKey. from_private_key_file ( "/Users/whatever/Downloads/mykey.pem") c = paramiko. SSHClient () c. set_missing_host_key_policy ( paramiko. AutoAddPolicy ()) print "connecting" c. connect ( hostname = "www.acme.com", username = "ubuntu", pkey = k )