mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -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() {
|
sftpc() {
|
||||||
expect -f "-" <<EOF "$@"
|
expect -f "-" <<EOF "$@"
|
||||||
set count 0
|
set count 0
|
||||||
spawn "/usr/bin/sftp -o StrictHostKeyChecking=no -o \
|
spawn /usr/bin/sftp -o StrictHostKeyChecking=no -o Port=$port $user@$host
|
||||||
Port=$port '$user@$host'"
|
|
||||||
expect {
|
expect {
|
||||||
"password:" {
|
"password:" {
|
||||||
send "$password\r"
|
send "$password\r"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue