美文网首页
Linux 服务器开启远程

Linux 服务器开启远程

作者: 苏为 | 来源:发表于2017-10-26 19:59 被阅读4次

开启sshd服务

首先更新源

sudoapt-get update

安装ssh服务

sudoapt-getinstallopenssh-server

检测是否已启动

ps-e |grepssh

看到有ssh字样,说明已启动,如果没有就手动启动

/etc/init.d/sshstart

配置ssh-server,配置文件位于/etc/ssh/sshd_config,默认端口为22,为了安全,一般自定义为其他端口,然后重启

sudo/etc/init.d/sshresart

在windows中,使用putty或者SSH Secure Shell等登录虚拟机

相关文章

网友评论

      本文标题:Linux 服务器开启远程

      本文链接:https://www.haomeiwen.com/subject/wfgruxtx.html