当前位置:网站首页>Google cloud SSH enable root password login
Google cloud SSH enable root password login
2022-06-25 19:04:00 【Ah, my goose one five and】
Modify the configuration
1. First select open from browser ssh Connect to server
After the connection login succeeds , Enter the following command
sudo -i # Switch to root
passwd # Change Password
You will then be asked to enter a new password , Then repeat the password again , The password will not be displayed when you enter it , So enter the password directly , And then go back , Then enter the password repeatedly and press enter .
modify root Password complete
2. Then modify SSH The configuration file /etc/ssh/sshd_config
vi /etc/ssh/sshd_config # Edit the file
Find the following and modify
PermitRootLogin yes // The default is no, Need to open root User access is changed to yes
PasswordAuthentication yes // The default is no, Change it to yes Open password login
After the modification is completed , Press again esc key , And then you type in
:wq # Save and exit
3. Finally, restart the server
reboot # Restart the server
Login example
external ip Address

external id Address .png
Sign in

Login example .png
If you cannot connect, you can view the firewall rules

边栏推荐
- 利尔达蓝牙空调接收器方案助力打造更舒适的公路生活
- 【历史上的今天】6 月 25 日:笔记本之父诞生;Windows 98 发布;通用产品代码首次商用
- Training of long and difficult sentences in postgraduate entrance examination day89
- Tcp/ip test questions (III)
- Redis6
- Idea common plug-ins
- 网络安全检测与防范 测试题(二)
- mysql事务讲解
- Sorting out the latest data mining competition scheme!
- User management and permissions
猜你喜欢

On Oracle full stack virtual machine -- graalvm

削足适履 - 谈谈赛道上的坡道改造

How to sort massive data? How to process data between memory and hard disk?
![Analysis on policy, output and market scale of China's natural gas hydrogen production industry in 2020 [figure]](/img/f2/ec0fe8bec503c8788d6d549845b95c.jpg)
Analysis on policy, output and market scale of China's natural gas hydrogen production industry in 2020 [figure]

Redis6

广州华锐互动打造VR展厅全景在线虚拟展厅

JVM|运行时数据区(堆空间)

Differences and relations between sequential table and array (easy to confuse), linear table and linked list
![Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]](/img/e8/027e8a6cbdc4454e7a18ed7aa2122a.jpg)
Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]

【ELT.ZIP】OpenHarmony啃论文俱乐部—见证文件压缩系统EROFS
随机推荐
Redis6
请问通达信开户安全吗?
Apifox simple understanding -- the integrator of web side testing
QQ robot epidemic situation query / epidemic situation concern [latest beta2 version]
electron 基础项目搭建 &&主线程和渲染线程的通信
What is an operator?
正则表达式总结
Analysis of China's road freight volume, market scale and competition pattern in 2020 [figure]
Training of long and difficult sentences in postgraduate entrance examination day87
Class 02 loader subsystem
[C language practice - print the upper triangle and its deformation (with blank version)]
[deeply understand tcapulusdb technology] one click installation of tmonitor background
揭秘GES超大规模图计算引擎HyG:图切分
Idea common plug-ins
158_模型_Power BI 使用 DAX + SVG 打通制作商业图表几乎所有可能
TCP/IP 测试题(三)
Current situation and development suggestions of China's green PPP project industry: the investment scale is expanding, and the existing problems need to be improved to further promote the healthy dev
2017 reading (word memory)
04 program counter (PC register)
MySQL view explanation