在 Linux 系统上可以使用以下几种方式查看 SSH 服务的版本号:
1. 使用 ssh 命令的 `-V` 或 `--version` 选项:
```
ssh -V
```
或
```
ssh --version
```
这将输出 SSH 客户端的版本信息。
2. 使用 `sshd` 命令的 `-V` 或 `--version` 选项:
```
sshd -V
```
或
```
sshd --version
```
这将输出 SSH 服务端的版本信息。
3. 查看 SSH 相关软件包的版本:
```
# 针对 OpenSSH
dpkg -s openssh-server
yum info openssh-server
# 针对 SSH 协议实现
rpm -q ssh
apt-cache policy ssh
```
4. 查看 `/etc/ssh/sshd_config` 文件中的 `Version` 字段:
```
cat /etc/ssh/sshd_config | grep "^Version"
```
这些方法都可以帮助你查看当前系统上 SSH 服务的版本信息。具体使用哪种方式,取决于你所使用的 Linux 发行版和个人习惯。