现在的位置: 首页 > 综合 > 正文

ubuntu14.04kylin-desktop64配置ssh服务

2017年12月22日 ⁄ 综合 ⁄ 共 451字 ⁄ 字号 评论关闭

以root用户登录之后,在终端执行

sudo ps -e |grep ssh
如果显示内容只有
root@ubuntu:/etc/apt# sudo ps -e |grep ssh 

2127 ? 00:00:00 ssh-agent
说明只有agent没有server,需要安装server:
sudo apt-get update
然后执行
sudo apt-get install openssh-server
sudo ps -e |grep ssh
显示
root@ubuntu:/etc/apt# sudo ps -e |grep ssh 

2127 ? 00:00:00 ssh-agent 

4547 ? 00:00:00 sshd
证明安装成功
执行
sudo gedit /etc/ssh/sshd_config
修改PermitRootLogin without-password为
#PermitRootLogin without-password
PermitRootLogin yes
执行
sudo service ssh restart
通过ifconfig查看机器IP
使用winscp即可连接

抱歉!评论已关闭.