当前位置:网站首页>SSH automatic reconnection script
SSH automatic reconnection script
2022-07-31 05:59:00 【tcliuwenwen】
Blog Background
Realize the automatic reconnection of SSH. For example, if the machine is booting or the network speed is slow, you can keep trying until the connection is successful.
Detailed operation
index=0;for ((i=1;i<=10;i++));do sshpass -p xxxxxxx ssh -o PreferredAuthentications=password -o StrictHostKeyChecking=no-o ConnectTimeout=3 [email protected] 'echo';if [[ $? -eq 0 ]];thenindex=1;break;fi;done;if [[ "$index" -eq 1 ]];then sshpass -p xxxxxxx ssh -o PreferredAuthentications=password -o StrictHostKeyChecking=no-o ConnectTimeout=3 [email protected];fi边栏推荐
- MySQL面试题大全(陆续更新)
- cocos2d-x-3.2 不能混合颜色修改
- "limit" query in Oracle database
- NFTs: The Heart of Digital Ownership
- jenkins +miniprogram-ci 一键上传微信小程序
- C language tutorial (1) - preparation
- MySQL分页查询的5种方法
- The server time zone value ‘й‘ is unrecognized or represents more than one time zone
- configure:error no SDL library found
- Filter out egrep itself when using ps | egrep
猜你喜欢

Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?

MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案

js中的对象与函数的理解

(Crypto essential dry goods) Detailed analysis of the current NFT trading markets

小米手机短信定位服务激活失败

Artifact SSMwar exploded Error deploying artifact.See server log for details

Linux modify MySQL database password

自定dialog 布局没有居中解决方案

The server time zone value ‘й‘ is unrecognized or represents more than one time zone

MySql to create data tables
随机推荐
Linux modify MySQL database password
What is the difference between NFT and digital collection?
动态规划(一)| 斐波那契数列和归递
Gradle sync failed: Uninitialized object exists on backward branch 142
flutter 混合开发 module 依赖
【云原生】SQL(及存储过程)跑得太慢怎么办?
著名网站msdn.itellyou.cn原理分析
configure:error no SDL library found
MySQL高级学习笔记
C language tutorial (1) - preparation
腾讯云GPU桌面服务器驱动安装
Using IIS10 to build an asp website in win11
The latest MySql installation teaching, very detailed
SQLite 查询表中每天插入的数量
DeFi Token in the project management
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
Android软件安全与逆向分析阅读笔记
NFTs: The Heart of Digital Ownership
[Elastic-Job] Overview of Distributed Scheduling Tasks
Why is the redis single-threaded also so fast?