赞
踩
1.查询是否安装SSH.
rpm -pa |grep ssh
2.如果没有安装rmp:
sudo apt-get install rpm #ubuntu,debian
yum -y instal rpm #centos,redhat
3.安装SSH
sudo apt-get install ssh
or
yum -y install openssh
4.启动服务:
service sshd start
or
/bin/systemctl restart sshd.service
or
/etc/init.d/sshd start
5.配置端口:
vim /etc/ssh/sshd_config
6.将port 前面的#删除,也可以更改其它端口.
7.允许root用户远程登录.
8.查看服务是否启动:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。