B
B
BlastPit2018-06-16 01:29:02
linux
BlastPit, 2018-06-16 01:29:02

What does the ssh-keyscan command do?

I understand the principle of building an ssh connection using keys ... But I can't figure out why this command is needed, and what keys it pulls into the known hosts file. Maybe I'm confused with these private and public keys. Could you explain to me the practical need for this command. And the main question, what am I fixated on, why do hosts give this information? let public keys that are used as locks and have nothing to do with decryption ... but I think that the remote host should not give this information, but it happens that this is possible, what's the idea?
PS As I understand it, they are additionally hashed when added to known_hosts, is that true? What for?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2018-06-16
@planc


Could you explain to me the practical need for this command
man ssh-keyscan
to check or create ssh_known_hosts
can collect keys from a large number of hosts very quickly
what is the idea
if the server is changed, then ssh will say that the king is not real

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question