Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the ssh-keyscan command in Linux

Shulou Source: shulou.com Published: 2022-06-01 16:05:57 10月28日 Update

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!

Tags: Host command information public key address key file utility content utility tool common use collection of large quantities format purpose article reference enforcement verification value Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux Shulou Information Docker NVidia