5 Ekim 2022 Çarşamba

ssh-keyscan komutu

Giriş
Açıklaması şöyle
ssh-keyscan is a utility for gathering the public SSH host keys of a number of hosts. It was designed to aid in building and verifying ssh_known_hosts files, the format of which is documented in sshd(8). ssh-keyscan provides a minimal interface suitable for use by shell and perl scripts.
Örnek
Şöyle yaparız
# Delete the entry for the old IP
ssh-keygen -R $OLD_IP

# Add entry for the new IP
ssh-keyscan $NEW_IP >> ~/.ssh/known_hosts
-H seçeneği
Çıktıyı hashed formatta almak için kullanılır
Örnek
Şöyle yaparız
ssh-keyscan -H $NEW_IP >> ~/.ssh/known_hosts


Hiç yorum yok:

Yorum Gönder