当前位置:网站首页>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 .
边栏推荐
- 【Hot100】33. Search rotation sort array
- Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
- 这18个网站能让你的页面背景炫酷起来
- RHCSA10
- mysql econnreset_ Nodejs socket error handling error: read econnreset
- Record in-depth learning - some bug handling
- jenkins安装
- 【MySQL 使用秘籍】一網打盡 MySQL 時間和日期類型與相關操作函數(三)
- Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
- What are the private addresses
猜你喜欢
C object storage
“百度杯”CTF比赛 九月场,Web:Upload
Android本地Sqlite数据库的备份和还原
Don't know these four caching modes, dare you say you understand caching?
Idea set method annotation and class annotation
MMSeg——Mutli-view时序数据检查与可视化
Go array and slice
Cloudcompare - point cloud slice
内网穿透工具 netapp
"Baidu Cup" CTF competition in September, web:sql
随机推荐
Fragmented knowledge management tool memos
私有地址有那些
go 数组与切片
Win10 - lightweight gadget
Resttemplate details
With 4 years of working experience, you can't tell five ways of communication between multithreads. Dare you believe it?
Binder通信过程及ServiceManager创建过程
restTemplate详解
通讯录(链表实现)
JS to determine whether an element exists in the array (four methods)
MySQL get time
Clock cycle
“百度杯”CTF比赛 九月场,Web:SQL
Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution
“百度杯”CTF比赛 九月场,Web:Upload
RHCSA9
百度杯”CTF比赛 2017 二月场,Web:爆破-2
Mmseg - Mutli view time series data inspection and visualization
Binder communication process and servicemanager creation process
Redis6 master-slave replication and clustering