当前位置:网站首页>ssh免密登录设置及使用脚本进行ssh登录并执行指令
ssh免密登录设置及使用脚本进行ssh登录并执行指令
2022-07-05 05:19:00 【xlbtlmy】
ssh免密登录
sudo apt-get install openssh-server
ssh-keygen -t rsa -C “你自己设定的名称或者邮箱地址”
cat ~/.ssh/id_rsa.pub >> .ssh/authorized_keys
/etc/init.d/ssh restart
脚本ssh登录并执行指令
@echo off
ssh -o ConnectTimeout=3 -l xlbtlmy 192.168.31.78 "echo xlbtlmy | sudo -S init 0"
timeout /t 3
边栏推荐
- Data is stored in the form of table
- [interval problem] 435 Non overlapping interval
- 2022年上半年国家教师资格证考试
- Programmers' experience of delivering takeout
- YOLOv5添加注意力機制
- Unity find the coordinates of a point on the circle
- win下一键生成当日的时间戳文件
- 发现一个很好的 Solon 框架试手的教学视频(Solon,轻量级应用开发框架)
- 2022 / 7 / 1 Résumé de l'étude
- 嵌入式数据库开发编程(五)——DQL
猜你喜欢
随机推荐
Service fusing hystrix
Count sort
Learning notes of "hands on learning in depth"
SDEI初探-透过事务看本质
room数据库的使用
PMP考试敏捷占比有多少?解疑
Lua GBK and UTF8 turn to each other
Haut OJ 1243: simple mathematical problems
[sum of two numbers] 169 sum of two numbers II - enter an ordered array
2022年上半年国家教师资格证考试
[turn to] MySQL operation practice (I): Keywords & functions
利用HashMap实现简单缓存
cocos_ Lua loads the file generated by bmfont fnt
Haut OJ 1347: addition of choice -- high progress addition
BUUCTF MISC
Three dimensional dice realize 3D cool rotation effect (with complete source code) (with animation code)
YOLOv5-Shufflenetv2
Data is stored in the form of table
Solon Logging 插件的添加器级别控制和日志器的级别控制
Collapse of adjacent vertical outer margins




![[turn to] MySQL operation practice (III): table connection](/img/70/20bf9b379ce58761bae9955982a158.png)

![[转]: OSGI规范 深入浅出](/img/54/d73a8d3e375dfe430c2eca39617b9c.png)
![[speed pointer] 142 circular linked list II](/img/f8/222a360c01d8ef120b61bdd2025044.jpg)
