请前往 模块插件 激活 UI Manage 然后刷新

用户登录
帮助中心

Ubuntu 安装ssh

一、安装ssh

18.04

 

apt install openssh-server  

16.04

 

apt-get install openssh-server

二、更改Ubuntu的root密码

首先应该更改root密码,因为默认安装时并不是固定的root密码

切换到root用户

 

sudo su

修改root用户的密码

 

passwd

两次输入root密码即可

 

三、修改ssh的配置文件

找到文件

 

/etc/ssh/sshd_config

找到配置文件下面的地方

 

PermitRootLogin prohibit-password

修改为

 

PermitRootLogin yes

四、重新启动ssh服务

service sshd restart

  • 198 用户发现这个很有用
此文章对您是否有帮助?

Related Articles

Ubuntu 18 修改ip

vim /etc/netplan/*.yaml   备注:ip和dns前面要空一格 wq保存 netplan apply  重启网卡注意:格式如果错误会导致无法重启网卡

Ubuntu 20.04 修改 IP / 加內網IP

vi /etc/network/interfaces :wq保存 重启网卡: /etc/init.d/networking restart

Ubuntu批量添加IP

ubuntu 18.04 17.04 #写入到 /etc/netplan/01-netcfg.yaml echo " addresses: " >>...

ubuntu18 時區

Ubuntu 要改变 Timezone 时区设定,可以用以下方法: dpkg-reconfigure 用 root 身份用 dpkg-reconfigure 设定 Ubuntu 的...

解决Ubuntu "E: 软件包 vim 还没有可供安装的候选者"问题

sudo apt-get update&&sudoo apt-get upgrade或者sudo apt-get update

<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script> <script>LA.init({id:"JtJTr4Zl4JkxXHuP",ck:"JtJTr4Zl4JkxXHuP"})</script>