当前位置:网站首页>云服务器基于 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边栏推荐
- HighTec快捷键(Keys)设置位置
- Exploration and practice of the "zero trust" protection and data security governance system of the ransomware virus of Meichuang Technology
- 高数_复习_第5章:多元函数微分学
- xshell (sed command)
- 如何保护 LDAP 目录服务中的用户安全?
- mmpose关键点(一):评价指标(PCK,OKS,mAP)
- 3D model reconstruction of UAV images based on motion structure restoration method based on Pix4Dmapper
- What is Jmeter? What are the principle steps used by Jmeter?
- 3598. 二叉树遍历(华中科技大学考研机试题)
- 带着昇腾去旅行:一日看尽金陵城里的AI胜景
猜你喜欢

QT笔记——vs + qt 创建一个带界面的 dll 和 调用带界面的dll

链表相加(二)

3598. 二叉树遍历(华中科技大学考研机试题)

FPGA - Memory Resources of 7 Series FPGA Internal Structure -03- Built-in Error Correction Function

阿里云架构师金云龙:基于云XR平台的视觉计算应用部署

FPGA - 7系列 FPGA内部结构之Memory Resources -03- 内置纠错功能

Thread State 详解

黑猫带你学Makefile第13篇:Makefile编译问题合集

《DevOps围炉夜话》- Pilot - CNCF开源DevOps项目DevStream简介 - feat. PMC成员胡涛

艺术与科技的狂欢,阿那亚2022砂之盒沉浸艺术季
随机推荐
【PCBA方案】电子握力测试仪方案she‘ji
LeetCode-498 - Diagonal Traversal
SDP
Black cat takes you to learn Makefile Part 11: When the header file a.h changes, how to recompile all the .c files that depend on the header file a.h
Live Classroom System 09--Tencent Cloud VOD Management Module (1)
自组织是管理者和成员的双向奔赴
LeetCode每日一题(1573. Number of Ways to Split a String)
win系统下pytorch深度学习环境安装
美味的石井饭
QT笔记——vs + qt 创建一个带界面的 dll 和 调用带界面的dll
JVM经典五十问,这下面试稳了
shell编程之正则表达式与文本处理器
RTL8721DM 双频WIFI + 蓝牙5.0 物联网(IoT)应用
【PCBA scheme design】Bluetooth skipping scheme
LeetCode-36-Binary search tree and doubly linked list
Likou 215 questions, the Kth largest element in an array
一篇文章教你Pytest快速入门和基础讲解,一定要看
2022.8.9 模拟赛
为什么一般公司面试结束后会说「回去等消息」,而不是直接告诉面试者结果?
3598. 二叉树遍历(华中科技大学考研机试题)