美文网首页
Ubuntu配置ssh

Ubuntu配置ssh

作者: 留个念想给昨天 | 来源:发表于2019-11-27 08:58 被阅读0次

一般Ubuntu都会默认安装openssh-client,但是没有安装openssh-server。

安装ssh服务器

sudo apt install openssh-server

安装ssh客户端

sudo apt install openssh-client

配置ssh客户端,

sudo vim /etc/ssh/ssh_config

去掉PasswordAuthentication yes前面的#号,保存退出

配置ssh服务器,

sudo vim /etc/ssh/sshd_config

把PermitRootLogin prohibit-password改成PermitRootLogin yes,保存退出。

重启ssh服务

sudo /etc/init.d/ssh restart

相关文章

网友评论

      本文标题:Ubuntu配置ssh

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