首页 > 系统服务 > 详细

ubuntu开启ssh连接

时间:2016-08-14 23:54:09      阅读:326      评论:0      收藏:0      [点我收藏+]

1.安装openssh-server

sudo apt-get install -y openssh-server

 

2.修改/etc/ssh/sshd-config配置

PermitRootLogin no修改为yes
PubkeyAuthentication yes修改为no
AuthorizedKeysFile .ssh/authorized_keys 去掉注释
PasswordAuthentication no修改为yes

 

3.开启防火墙的22端口

ufw allow 22/tcp

 

ubuntu开启ssh连接

原文:http://www.cnblogs.com/tiger2soft/p/5771405.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!