当前位置:网站首页>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_configThe configuration file .sudo vi /etc/ssh/sshd_config - Press i Switch to edit mode , find
#Authentication, takePermitRootLoginParameter is modified asyes. IfPermitRootLoginParameter is annotated , Please remove the comment symbol in the first line (#). As shown in the figure below :
- find
#Authentication, takePasswordAuthenticationParameter is modified as yes. As shown in the figure below :explain
if
sshd_configThere is no such configuration item in the configuration file , Then addPasswordAuthentication yesItem 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 .
边栏推荐
- Android本地Sqlite数据库的备份和还原
- Huawei push service content, read notes
- How to apply the updated fluent 3.0 to applet development
- 蜀天梦图×微言科技丨达梦图数据库朋友圈+1
- Fragmented knowledge management tool memos
- [MySQL usage Script] catch all MySQL time and date types and related operation functions (3)
- Prefix, infix, suffix expression "recommended collection"
- [深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接
- SAE international strategic investment geometry partner
- Can and can FD
猜你喜欢

精彩速递|腾讯云数据库6月刊

数据泄露怎么办?'华生·K'7招消灭安全威胁

Fragmented knowledge management tool memos

RHCSA9

真正的缓存之王,Google Guava 只是弟弟

Record in-depth learning - some bug handling
![[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging](/img/52/5e85743b1817de96a52e02b92fd08c.png)
[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging

UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt

RHCSA8

SAE international strategic investment geometry partner
随机推荐
Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
[深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
Summary and arrangement of JPA specifications
A detailed explanation of ASCII code, Unicode and UTF-8
Go pointer
【MySQL 使用秘籍】一網打盡 MySQL 時間和日期類型與相關操作函數(三)
leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
网络安全-HSRP协议
这18个网站能让你的页面背景炫酷起来
JPA规范总结和整理
今年上半年,通信行业发生了哪些事?
The real king of caching, Google guava is just a brother
Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging
STM32 reverse entry
"Baidu Cup" CTF competition in September, web:sql
Notion 类笔记软件如何选择?Notion 、FlowUs 、Wolai 对比评测
redis6数据类型及操作总结
Apicloud studio3 WiFi real machine synchronization and WiFi real machine preview instructions
精彩速递|腾讯云数据库6月刊

