File: paramiko.md

package info (click to toggle)
opkssh 0.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: sh: 2,062; makefile: 11
file content (14 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# paramiko

If you use the `paramiko` libary for Python, then you'll have to manually load the public key like this:

```python
import paramiko

private_key = paramiko.ECDSAKey(filename='/home/username/.ssh/opkssh_server_group1')
private_key.load_certificate('/home/username/.ssh/opkssh_server_group1-cert.pub')

sshcon  = paramiko.SSHClient()
sshcon.set_missing_host_key_policy(paramiko.AutoAddPolicy())
sshcon.connect('192.168.10.10', username='ubuntu', pkey=private_key)
```