当前位置:网站首页>ECS settings SSH key login
ECS settings SSH key login
2022-07-04 22:57:00 【Song Xiaoyu】
- The client generates public and private keys
ssh-keygen -t rsa -b 4096 -C "[email protected]" - Upload public key to server
scp ~/.ssh/id_rsa.pub [email protected] Server address :/root - Log in to the server
- establish .ssh file
mkdir /root/.ssh - create a file
cd /root/.ssh touch authorized_keys - Add the private key
cat id_rsa.pub >> /root/.ssh/authorized_keys - Add permissions
chmod -R 700 .ssh
# ssh The configuration file is located in
vim /etc/ssh/sshd_config
# restart ssh
systemctl restart sshd.service
Reference documents
https://developer.aliyun.com/article/641091
Pay attention to chown Is to change the owner ,chmod Is to change permissions
边栏推荐
- Sword finger offer 68 - ii The nearest common ancestor of binary tree
- Redis入门完整教程:Pipeline
- A complete tutorial for getting started with redis: Pipeline
- Unity修仙手游 | lua动态滑动功能(3种源码具体实现)
- Sword finger offer 68 - I. nearest common ancestor of binary search tree
- Hit the core in the advanced area of misc in the attack and defense world
- Redis入门完整教程:发布订阅
- 攻防世界 misc 进阶区 2017_Dating_in_Singapore
- Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
- Async await used in map
猜你喜欢

Redis démarrer le tutoriel complet: Pipeline

Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)

安装人大金仓数据库

攻防世界 misc 进阶区 2017_Dating_in_Singapore

攻防世界 MISC 进阶区 hit-the-core

Redis入门完整教程:Bitmaps

Detailed explanation of heap sort code

Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf

Three stage operations in the attack and defense drill of the blue team

EditPlus--用法--快捷键/配置/背景色/字体大小
随机推荐
Redis入门完整教程:Pipeline
【OpenGL】笔记二十九、抗锯齿(MSAA)
Erik baleog and Olaf, advanced area of misc in the attack and defense world
Redis入门完整教程:集合详解
MySQL Architecture - logical architecture
页面关闭前,如何发送一个可靠请求
Attack and defense world misc advanced zone 2017_ Dating_ in_ Singapore
UML图记忆技巧
华泰证券是国家认可的券商吗?开户安不安全?
Redis入门完整教程:HyperLogLog
特征缩放 标准化 归一化
攻防世界 MISC 进阶区 can_has_stdio?
常用技术指标之一文读懂BOLL布林线指标
Attack and defense world misc advanced grace-50
该如何去选择证券公司,手机上开户安不安全
攻防世界 misc 高手进阶区 a_good_idea
leetcode 72. Edit distance edit distance (medium)
啃下大骨头——排序(二)
Naacl-22 | introduce the setting of migration learning on the prompt based text generation task
Prosperity is exhausted, things are right and people are wrong: where should personal webmasters go