当前位置:网站首页>秘钥远程登录服务器实现免密登录实战
秘钥远程登录服务器实现免密登录实战
2022-07-23 05:47:00 【ELIAUK``】
想要打通的过去的这台主机:
1)
ssh-keygen -t dsa
#建立私钥和公钥(一直回车)
2)
#创建ssh目录:
mkdir /ssh 在cd .ssh3)
ssh-copy-id -i /root/.ssh/id_dsa.pub [email protected]4)检查一下是否打通
ssh 192.168.174.138
需要被打通的主机:
1)需要在第3把打通过去之前新建文件:
mkdir .ssh2)新建文件:
touch authorized_keys3)附加权限:
chmod 600 authorized_keys4)建立私钥公钥:
ssh-keygen -t dsa使用命令互相检查查看一下是否打通:
ssh 192.168.174.135 df -h查看私钥:
[[email protected] .ssh]# cat id_dsa
查看公钥:
[[email protected] .ssh]# cat id_dsa.pub 
边栏推荐
猜你喜欢

Telnet 配置实例学习记录

默认路由配置实例学习记录

MySQL performance optimization, index optimization

Learning diary - (routing and switching technology) single arm routing

Learning diary - (routing and switching technology) ACL access control list

Learning diary - (routing and switching technology) dynamic routing (RIP protocol) and static routing

Hcip ---- relevant knowledge points of GRE protocol, mGRE environment and OSPF Protocol

Gameframework: package resources, publish packages with the app, package and generate folder instructions, upload resources to the server, download resources, gamefreamworklist DAT and gameframeworkve

【读书笔记《凤凰架构》- 构架可靠的大型分布式系统.周志明】(一)

OSPF comprehensive experiment
随机推荐
Link expansion configuration of OSPF
DHCP 配置实例学习记录
手动配置DHCP服务
2小时1000人吃饭,要多少台座椅?
Routing and interface technology -- Summary of direct network
学习日记(路由与交换技术)——浮动静态路由和缺省路由
sftp部署配置
How to write a web page with a common text editor
ftp部署
Learning diary - (routing and switching technology) dynamic routing (RIP protocol) and static routing
Explain TCP segmentation and IP fragmentation in detail
MySQL performance optimization, index optimization
0 dynamic programming leetcodde313. super ugly number
Super easy to use packet capturing tool tcpdump
Depth first find all simple paths from vertex u to vertex v in the graph
jenkins用到的插件
静态路由原理与配置
Nas里搭建Frpc客户端【超级无脑】
Learning diary - (routing and switching technology) OSPF Protocol
Routing extension configuration of OSPF and rip