mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Merge pull request #1919 from dbannik/fix-add-sftp-backup
fixed add sftp server backup
This commit is contained in:
commit
5c61b3efb1
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,7 @@ EOF
|
|||
sftpc() {
|
||||
expect -f "-" <<EOF "$@"
|
||||
set count 0
|
||||
spawn "/usr/bin/sftp -o StrictHostKeyChecking=no -o \
|
||||
Port=$port '$user@$host'"
|
||||
spawn /usr/bin/sftp -o StrictHostKeyChecking=no -o Port=$port $user@$host
|
||||
expect {
|
||||
"password:" {
|
||||
send "$password\r"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue