基本介绍:物理服务器已经安装ubuntu18.04.需要配置ssh实现内网登录,并且使用内网穿透实现公网远程访问.
注意:如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudo apt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-server
一、配置ssh实现内网登录:
1.安装ssh-server:
sudo apt-get install openssh-server
2.启动ssh服务:
sudo /etc/init.d/ssh start或sudo service ssh start
3.设置允许远程root用户登录:
sudo vim /etc/ssh/sshd_config
搜索找到PermitRootLogin
加入配置
PermitRootLogin yes
4.重启SSH服务:


8885

被折叠的 条评论
为什么被折叠?



