1.首先查询系统是否安装了上述软件包。
# rpm -qa |grep openssh
如果没有安装则执行如下命令。
# rpm -ivh openssh-3.5p1-6
# rpm -ivh openssh-server-3.5p1-6
# rpm -ivh openssh-askpass-gnome-3.5p1-6
# rpm -ivh openssh-clients-3.5p1-6
# rpm -ivh openssh-askpass-3.5p1-6
# rpm -ivh openssh-3.5p1-6
# rpm -ivh openssh-server-3.5p1-6
# rpm -ivh openssh-askpass-gnome-3.5p1-6
# rpm -ivh openssh-clients-3.5p1-6
# rpm -ivh openssh-askpass-3.5p1-6
2.安装完成之后,可以使用下述两个命令中的任一个进行启动。
# service sshd start
# /etc/rc.d/init.d/sshd start
# service sshd start
# /etc/rc.d/init.d/sshd start
3.设置默认启动
# chkconfig sshd on
转载于:https://blog.51cto.com/6923450605400/829789