#!/bin/sh
sshpass -p "your password" ssh [email protected]
注意:
需要先安装sshpass:
源码下载地址:http://sourceforge.net/projects/sshpass/
tar -zxvf sshpass-1.05.tar.gz
cd sshpass-1.05
./configure
make && make install
安装完成后输入sshpass查看是否安装成功
时间: 2024-10-26 17:30:30