mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-06 12:11:12 +01:00
fixed add sftp server backup
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user