常用Linux命令

1、查看sshd是否已经是系统服务

# chkconfig –list |grep sshd

会显示:

sshd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

使用如下命令设置sshd服务自动启动:

# chkconfig –level 5 sshd on

2、检查服务是否启用

ps -ef | grep ssh

3、安装服务

yum install openssh-server

4、安装完之后开启

/etc/init.d/sshd start

5、