用yum install openssh -y 来安装。然后用命令 chkconfig --level 345 sshd on 使得系统开机运行ssh服务,用/etc/rc.d/init.d/sshd start开通服务,你切换到root用户才行,或者用sudo。
如果你是ubuntu或者debian 系统的话,用sudo apt-get install openssh-server安装,用/etc/init.d/sshd start开通服务。用netstat -an| grep 22 查看是否有ssh
lsof -i:21(查看端口)