Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the ssh-keyscan command in Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use the ssh-keyscan command in Linux. It is very detailed and has a certain reference value. Friends who are interested must finish it!

The Linux common command ssh-keyscan command is a utility that collects a large number of host public keys. Its purpose is to create and validate "ssh_known_hosts" files.

Command Overview the ssh-keyscan command is a utility for collecting a large number of host public keys. Its purpose is to create and validate "ssh_known_hosts" files.

Command format: ssh-keyscan [options] [parameters] Common option-4 Force use of IPv4 address-6 Force use of IPv6 address-f read "address list, name list" from the specified file pair-p specifies the port to connect to the remote host-T specifies the timeout of the connection attempt-t specifies the key type to be created-v information mode Print debugging information reference example shows the RSA host key of host 192.168.12.101

[root@localhost ~] # ssh-keyscan 192.168.12.101 collects the host ssh public key and outputs debugging information

[root@localhost ~] # ssh-keyscan-v 192.168.12.101 shows the rsa host key of host 192.168.12.101

[root@localhost] # ssh-keyscan-t rsa 192.168.12.101 is all the contents of this article entitled "how to use ssh-keyscan commands in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report