当前位置:网站首页>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
边栏推荐
- 【机器学习】手写数字识别
- 特征缩放 标准化 归一化
- 微信小程序显示样式知识点总结
- 业务太忙,真的是没时间搞自动化理由吗?
- One of the commonly used technical indicators, reading boll Bollinger line indicators
- 集群的概述与定义,一看就会
- mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
- 剑指 Offer 65. 不用加减乘除做加法
- Mongodb aggregation operation summary
- Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
猜你喜欢

Tla+ introductory tutorial (1): introduction to formal methods

On-off and on-off of quality system construction

Wake up day, how do I step by step towards the road of software testing

Redis getting started complete tutorial: publish and subscribe

【剑指offer】1-5题

Naacl-22 | introduce the setting of migration learning on the prompt based text generation task

EditPlus--用法--快捷键/配置/背景色/字体大小

MYSQL架构——用户权限与管理

集群的概述与定义,一看就会

Logo special training camp section II collocation relationship between words and graphics
随机推荐
Redis入門完整教程:Pipeline
A complete tutorial for getting started with redis: redis shell
Breakpoint debugging under vs2019 c release
[OpenGL] note 29 anti aliasing (MSAA)
Business is too busy. Is there really no reason to have time for automation?
Redis入门完整教程:键管理
攻防世界 MISC 進階區 Erik-Baleog-and-Olaf
Wake up day, how do I step by step towards the road of software testing
Redis: redis configuration file related configuration and redis persistence
环境加密技术解析
Close system call analysis - Performance Optimization
【OpenGL】笔记二十九、抗锯齿(MSAA)
【剑指offer】1-5题
【机器学习】手写数字识别
mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
Google Earth Engine(GEE)——基于 MCD64A1 的 GlobFire 日常火灾数据集
Duplicate ADMAS part name
Talk about Middleware
[the 2023 autumn recruitment of MIHA tour] open [the only exclusive internal push code of school recruitment eytuc]
Three stage operations in the attack and defense drill of the blue team