首页 > 代码库 > SFTP

SFTP

sftp -b ${scriptPath}/sftp_get_filelist.txt ${user}@${IP}
#!/bin/bash


path=/home

lftp -u root,123456 sftp://192.168.20.46 << EOF
cd ${path}
ls >> ./t.log
EOF
echo "OK"

 

SFTP