## 安装openssh-server
```
yum install -y openssl openssh-server
```
## 生成公钥私钥
```
ssh-keygen -t rsa
```
## 重新生成主机密钥文件
```
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key
```