> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/ssh-keyscan.md).

# ssh-keyscan

收集主机公钥的使用工具

## 补充说明

**ssh-keyscan命令** 是一个收集大量主机公钥的使用工具。

### 语法

```
ssh-keyscan(选项)(参数)
```

### 选项

```
-4：强制使用IPv4地址；
-6：强制使用IPv6地址；
-f：从指定文件中读取“地址列表/名字列表”；
-p：指定连接远程主机的端口；
-T：指定连接尝试的超时时间；
-t：指定要创建的密钥类型；
-v：信息模式，打印调试信息。
```

### 参数

主机列表：指定要收集公钥的主机列表。
