当前位置:网站首页>When using Tencent cloud for the first time, you can only use webshell connection instead of SSH connection.
When using Tencent cloud for the first time, you can only use webshell connection instead of SSH connection.
2022-07-05 13:35:00 【No Bug】
Ubuntu How the system works root User login instance ?
Ubuntu The default user name of the system is ubuntu, It is not set by default during installation root Account and password . If you need , Allow... Can be turned on in settings root The user login . The specific operation steps are as follows :
- Use ubuntu Log in to the lightweight application server with your account .
- Execute the following command , Set up root password .
sudo passwd root
- Input root Password , Press Enter.
- Repeat input root Password , Press Enter.
Return the following information , It indicates that the root Password set successfully .passwd: password updated successfully
- Execute the following command , open
sshd_config
The configuration file .sudo vi /etc/ssh/sshd_config
- Press i Switch to edit mode , find
#Authentication
, takePermitRootLogin
Parameter is modified asyes
. IfPermitRootLogin
Parameter is annotated , Please remove the comment symbol in the first line (#
). As shown in the figure below : - find
#Authentication
, takePasswordAuthentication
Parameter is modified as yes. As shown in the figure below :explain
if
sshd_config
There is no such configuration item in the configuration file , Then addPasswordAuthentication yes
Item can . - Press Esc, Input :wq, Save the file and return to .
- Execute the following command , restart ssh service .
sudo service ssh restart
- Reference resources Log in using remote login software Linux example , And log in with the following information Ubuntu Lightweight application servers :
- user name :root
- The login password : stay step 2 Password set in
The above is the official document of Tencent cloud . There is less emphasis here , Namely PasswordAuthentication yes, The default here is (#PasswordAuthentication prohit password) Need to get rid of the comments # Then change it to PasswordAuthentication yes
So you can remote ssh Log on to the .
边栏推荐
- 百度杯”CTF比赛 2017 二月场,Web:爆破-2
- 华为推送服务内容,阅读笔记
- Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
- Talk about seven ways to realize asynchronous programming
- 面试官灵魂拷问:为什么代码规范要求 SQL 语句不要过多的 join?
- MySQL get time
- 蜀天梦图×微言科技丨达梦图数据库朋友圈+1
- go 数组与切片
- Idea设置方法注释和类注释
- How to realize batch sending when fishing
猜你喜欢
蜀天梦图×微言科技丨达梦图数据库朋友圈+1
The "Baidu Cup" CTF competition was held in February 2017, Web: explosion-2
Aikesheng sqle audit tool successfully completed the evaluation of "SQL quality management platform grading ability" of the Academy of communications and communications
MySQL --- 数据库查询 - 排序查询、分页查询
[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
Flutter draws animation effects of wave movement, curves and line graphs
FPGA learning notes: vivado 2019.1 add IP MicroBlaze
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
Could not set property ‘id‘ of ‘class XX‘ with value ‘XX‘ argument type mismatch 解决办法
随机推荐
时钟周期
Idea set method annotation and class annotation
Flutter 3.0更新后如何应用到小程序开发中
The "Baidu Cup" CTF competition was held in February 2017, Web: explosion-2
“百度杯”CTF比赛 九月场,Web:Upload
How to apply the updated fluent 3.0 to applet development
真正的缓存之王,Google Guava 只是弟弟
Shandong University Summer Training - 20220620
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
A detailed explanation of ASCII code, Unicode and UTF-8
Redis6 master-slave replication and clustering
Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
C# 对象存储
今年上半年,通信行业发生了哪些事?
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
JPA规范总结和整理
Apicloud studio3 WiFi real machine synchronization and WiFi real machine preview instructions
#从源头解决# 自定义头文件在VS上出现“无法打开源文件“XX.h“的问题
leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)