当前位置:网站首页>Log in to Alibaba cloud server with a key
Log in to Alibaba cloud server with a key
2022-07-27 06:47:00 【lianyz1985】
Log in to Alibaba cloud server with a key
Select the key method when creating the server
After selecting the key method , It will be generated and downloaded through the browser aliyun.pem The key file , Save the key file to ~/.ssh/ Under the table of contents , And modify the access rights of the key
chmod 600 aliyun.pem
Log in to the server with the key
Input... At the terminal
ssh -i ~/.ssh/aliyun.pem [email protected] Address
The following prompt appears , The login is successful
Welcome to Alibaba Cloud Elastic Compute Service !
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Sat Jun 5 18:50:11 2021 from 223.104.39.200
Create a quick login
Every time you log in, you need to enter your user name ip Port information , To configure ssh Fast login, more convenient login server ;
In the local ~/.ssh/config Add... To the configuration file ssh server information , Format :
Host aliyun # Custom alias
HostName hostname # The server ip or domain
Port port #ssh Server port , The default is 22
User user #ssh Server user name
IdentityFile ~/.ssh/aliyun.pem # Private key file
Enter the following command at the terminal , Quick login server
ssh aliyun
The following prompt appears , The login is successful
Welcome to Alibaba Cloud Elastic Compute Service !
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Sat Jun 5 18:59:15 2021 from 223.104.39.200
In Ali cloud ECS New user on server , Unable to get ssh Connection login solution :
use root Users log on to the server , find /ect/ssh/sshd_config file
take PasswordAuthentication no It is amended as follows :
PasswordAuthentication yes
边栏推荐
- 备忘录 @RestControllerAdvice与异常拦截类示例
- About the use of TestNG related tags
- 向日葵教大家如何防范拒绝服务攻击漏洞?
- KVM命令集管理虚拟机
- Joint query of database
- How to manage a large number of scheduled tasks
- Solve the problems of CONDA install stop and interruption
- Tips - completely delete the files on the USB flash drive
- Constraints and design of database
- Socket programming II: using Select
猜你喜欢

Kaggle calls the custom module method
![Summary of frequently asked questions in the interview [summarized after painstaking work all night]](/img/70/90543c23326305590242716b989643.png)
Summary of frequently asked questions in the interview [summarized after painstaking work all night]

shell函数

FTX US推出FTX Stocks,向主流金融行业迈进

阿里云短信验证第三方接口(快速使用)

Stress performance test of website based on AB tool under Apache

DNS domain name resolution service

一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告诉你一键修复漏洞可行吗?向日葵来告

PSI|CSI和ROC|AUC和KS -备忘录

What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
随机推荐
2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
Relevant preparation materials for system design
使用密钥方式登录阿里云服务器
ArcGIS for JS API (2) get the ID set of element services
Soul submitted an application for listing in Hong Kong stocks, accelerating the diversified and scene based layout of social gathering places
PSI|CSI和ROC|AUC和KS -备忘录
Redis快速学习
Source code compilation and installation lamp and discuz Forum
What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
Talk about why you need to declare the member function of a class as private
FTP服务器的搭建
多模态数据库 | 星环科技多模数据库ArgoDB“一库多用“,构建高性能湖仓集一体平台
Constraints and design of database
Function call of shell script
Three methods to judge whether it is palindrome structure
如何避免漏洞?向日葵远程为你讲解不同场景下的安全使用方法
keras-ocr实例测试
NFS introduction and configuration
磁盘管理与文件系统
For redis under windows, it can only read but not write