启动SSH服务
1.启动ssh服务
[email protected]:/#/etc/init.d/ssh start
2.生成密钥KEY
[email protected]:/#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
[email protected]:/#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
[email protected]:/#sshd-generate
时间: 2024-11-03 01:19:27