要点;
1、装红旗6时 先将DELL机Bios中Stat Mode设置为RAID
2、ssh红旗6已装 ssh -v 显示:OpenSSH_4.6P1,...
配置文件是 /etc/ssh/ssh_config
PermitRootLogin置no(非必须)
3、
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
(ssh-keygen -q -f ~/.ssh/id_rsa -t rsa)
4、启动
#/usr/sbin/sshd
如未第3步,会出现以下错误
Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available — exiting
5、置为开机自启动
chkconfig sshd on (是否必须,未测试过)
1、装红旗6时 先将DELL机Bios中Stat Mode设置为RAID
2、ssh红旗6已装 ssh -v 显示:OpenSSH_4.6P1,...
配置文件是 /etc/ssh/ssh_config
PermitRootLogin置no(非必须)
3、
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
(ssh-keygen -q -f ~/.ssh/id_rsa -t rsa)
4、启动
#/usr/sbin/sshd
如未第3步,会出现以下错误
Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available — exiting
5、置为开机自启动
chkconfig sshd on (是否必须,未测试过)