We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
SFTP Backup failed [SOLUTION]
SFTP Backup failed [SOLUTION]
Hi!
I have faced the errors with sftp backup script. It can't connect to the server if I run it manually, so I tried to see the code and found the error:
In that function it waits for the "password:", but in the reality it receives "Password:" from my server (first letter is capital). May be it's just my server version, but I think you can fix this somehow ))
I have faced the errors with sftp backup script. It can't connect to the server if I run it manually, so I tried to see the code and found the error:
Code: Select all
# sftp command function
sftpc() {
expect -f "-" <<EOF "$@"
set timeout 60
set count 0
spawn /usr/bin/sftp -o StrictHostKeyChecking=no \
-o Port=$PORT $USERNAME@$HOST
expect {
"password:" {
send "$PASSWORD\r"
exp_continue
}
...
...
In that function it waits for the "password:", but in the reality it receives "Password:" from my server (first letter is capital). May be it's just my server version, but I think you can fix this somehow ))
Re: SFTP Backup failed [SOLUTION]
8 years on and this solved my issue, thank you :)