In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Xiaobian to share with you the use of linux ssh-keyscan command to collect the ssh public key of the host, I hope you read this article after the harvest, let us discuss it together!
The ssh-keyscan command is a utility that collects a large number of host public keys. Its purpose is to create and validate the "ssh_known_hosts" file.
The ssh-keyscan command only supports ssh protocol version 1 and cannot be used in ssh protocol version 2.
Syntax format: ssh-keyscan [parameters]
Common parameters:
-4 Force IPv4 addresses-6 Force IPv6 addresses-f Read "address list, name list" from specified file Pair-p Specify port to connect to remote host-T Specify timeout for connection attempt-t Specify key type to create-v Information mode, print debug information
Reference Example
Collect the host ssh public key and output debug information:
[root@linuxcool ~]# ssh-keyscan -v 202.120.240.65
Display RSA host key for host 192.168.0.2:
[root@linuxcool ~]# ssh-keyscan 192.168.0.2
DSA host key for host 192.168.0.2 is displayed:
[root@linuxcool ~]# ssh-keyscan -t dsa 192.168.0.2
Print debugging information:
[root@linuxcool ~]# ssh-keyscan -v
Mandatory IPv4 addresses:
[root@linuxcool ~]# ssh-keyscan -4 After reading this article, I believe you have a certain understanding of using the linux ssh-keyscan command to collect the ssh public key of the host. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.