简单的登录服务器脚本(不用每次输入密码)

记录一个简单的登录服务器脚本(不用每次输入密码)

1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# usage: sh auto_login.sh 1.2.3.4
instance=$1
echo $instance
if [[ -z "$instance" ]]; then
#statements
echo "instance is null"
exit
fi

sshpass -p **pwd** ssh -o StrictHostKeyChecking=no tryking@$instance

标题Title
作者末日没有进行曲
链接link
时间:2019-04-28
声明:本博客所有文章均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×