在虚拟机的CentOS安装 SSH Server服务
- rpm -qa | grep ssh 查看SSH是否安装
- 使用root用户登录,用 sudo 命令增加权限
- yum install openssh-server 安装SSH
-
service sshd restart 重启SSH服务。
其他命令
- chkconfig ssh on 开机启动
- netstat -antp | grep sshd 查看是否启动22端口
原文 https://www.cnblogs.com/DiDiao-Liang/articles/8283686.html