Mac使用SCP带密码传输


1年前 1066次点击 来自 Linux

1.安装shhpass

git clone git://github.com/kevinburke/sshpass.git
cd sshpass
./configure
make && make install

2.使用sshpass

sshpass -p "password" scp -r user@example.com:/some/remote/path /some/local/path

Made with in Shangrao,China By Devler.

Copyright © Devler 2012 - 2022

赣ICP备19009883号-1

Top ↑