From 02069b43ff94244efcdf3663cb4cca931530fcfa Mon Sep 17 00:00:00 2001 From: JimZhang Date: Fri, 25 Aug 2023 11:38:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=99=BB=E5=BD=95ssh?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/posts/linux-command.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/content/posts/linux-command.md b/content/posts/linux-command.md index 5c7fb19..220404b 100644 --- a/content/posts/linux-command.md +++ b/content/posts/linux-command.md @@ -28,4 +28,34 @@ memray run --live -m module.file ```bash pip install py-spy py-spy top --pid ${pid} +``` + +### 批量设置ssh自动登录 + + + +```bash +#!/bin/bash +# FileName: auto-ssh-login.sh +# Revision: 1.0 +# Date: 2020-03-25 +# Author: baige +# Description: the script for auto-ssh-login +while read host;do + ip=`echo $host | cut -d " " -f1` + username=`echo $host | cut -d " " -f2` + password=`echo $host | cut -d " " -f3` +expect <