OpenSSH known_hosts file edit tool
Project description
OpenSSH known_hosts file edit tool
This is a helper class to edit ~/.ssh/known_hosts
.
It mostly calls the appropriate ssh-keygen
commands.
It automatically hashes hostnames if there are already hashed hostnames in ~/.ssh/known_hosts
.
Usage:
from ssh_known_hosts_edit import SSHKnownHostsEdit
edit = SSHKnownHostsEdit()
edit.add_to_known_hosts('github.com', 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl')
edit.add_to_known_hosts('github.com', 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=')
edit.remove_from_known_hosts('github.com')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ssh_known_hosts_edit-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f217f73e958647ccd62a0bfce4aa83ddcf150cf932f99d614e00be479f729d9f |
|
MD5 | 422fec570d79acf98d7f15e95c3de348 |
|
BLAKE2b-256 | 7f46febb2c179abff212c4dacaa67d79d2f9b68ba18af782649f27b7daf75e4c |
Close
Hashes for ssh_known_hosts_edit-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 036d618dbf5f33aec591325635ffbef45f64757dfdebb42cd3e9ebb8e55edf86 |
|
MD5 | 83b9ba780c716d20b5b14e256686557d |
|
BLAKE2b-256 | 380927ac3645630ab59911a18666b93f53afb117bc262ef2fad52db55eab038c |