当前位置:网站首页>云服务器基于 SSH 协议实现免密登录
云服务器基于 SSH 协议实现免密登录
2022-08-10 21:51:00 【InfoQ】
SSH 协议实现免密登录
前言
- Xshell:好用,舒服,但是收费软件
- Putty:简洁,又太过简洁,免费
- CMD / Powershell:Windows 自带,也能用
- Git bash:安装 Git 时自带的,挺不错
- Cmder:代理 CMD 的第三方终端,美观,但是个人体验感觉笨重
SSH 协议
使用 SSH 远程登录服务器
ssh1. 使用用户名和密码登录
$ ssh <用户名>@<服务器 IP>
2. 配置 ssh 公钥实现免密登录
免密登录的原理
1.本地生成 SSH 秘钥。
ssh-keygen$ ssh-genkey -t rsa
passphraseid_rsaid_rsa.pub2.将公钥部署到服务器
/root/.sshauthorized_keysauthorized_keysssh-copy-idgit bash$ ssh-copy-id <用户名>@<服务器 IP>
ssh [email protected]<服务器 IP>key3.测试
$ ssh <用户名>@<服务器 IP>
authorized_keys$ cat authorized_keys
ssh-copy-id小结
root边栏推荐
- QT笔记——vs + qt 创建一个带界面的 dll 和 调用带界面的dll
- LeetCode-36-Binary search tree and doubly linked list
- SDP
- C#【必备技能篇】Hex文件转bin文件的代码实现
- 阿里云张新涛:支持沉浸式体验应用快速落地,阿里云云XR平台发布
- 测试4年感觉和1、2年时没什么不同?这和应届生有什么区别?
- 【PCBA方案】电子握力测试仪方案she‘ji
- 罗克韦尔AB PLC RSLogix5000中计数器指令使用方法介绍
- 特别的三杯鸡
- 2022.8.8 Selected Lectures on Good Topics (Number Theory Field)
猜你喜欢

JVM classic fifty questions, now the interview is stable

How to translate financial annual report, why choose a professional translation company?

一篇文章教你Pytest快速入门和基础讲解,一定要看

RK3399平台开发系列讲解(内核驱动外设篇)6.35、IAM20680陀螺仪介绍

阿里云贾朝辉:云XR平台支持彼真科技呈现国风科幻虚拟演唱会

阿里云新增三大高性能计算解决方案,助力生命科学行业快速发展

LeetCode-498 - Diagonal Traversal
![[Maui official version] Create a cross-platform Maui program, as well as the implementation and demonstration of dependency injection and MVVM two-way binding](/img/07/2baa3bd1d8da0f868fd49b5bdd0527.png)
[Maui official version] Create a cross-platform Maui program, as well as the implementation and demonstration of dependency injection and MVVM two-way binding

华为路由器旁挂引流实验(使用流策略)

GMT,UTC,CST,DST,RTC,NTP,SNTP,NITZ: 嵌入式的时间
随机推荐
LeetCode每日一题(1573. Number of Ways to Split a String)
shell编程之免交互
美味的佳肴
Black cat takes you to learn Makefile Part 12: Summary of common Makefile problems
高通平台开发系列讲解(应用篇)QCMAP应用框架介绍
华为路由器旁挂引流实验(使用流策略)
LeetCode Daily Question (1573. Number of Ways to Split a String)
LeetCode-36-二叉搜索树与双向链表
企业云存储日常运行维护实践经验分享
智能方案设计——智能跳绳方案
IM 即时通讯开发如何设计图片文件的服务端存储架构
美味的石井饭
交换机和生成树知识点
学会开会|成为有连接感组织的重要技能
Redis Performance Impact - Asynchronous Mechanisms and Response Latency
Shell编程规范与变量
艺术与科技的狂欢,阿那亚2022砂之盒沉浸艺术季
Why general company will say "go back messages such as" after the end of the interview, rather than just tell the interviewer the result?
12 Recurrent Neural Network RNN2 of Deep Learning
Using SylixOS virtual serial port, serial port free implementation system