Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

SFTP Backup failed [SOLUTION]

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
WhiteWind
Posts: 7
Joined: Fri Oct 04, 2013 7:22 pm

SFTP Backup failed [SOLUTION]
  • Quote

Post by WhiteWind » Fri May 18, 2018 8:13 pm

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:

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 ))
Top

jimmyeao
Posts: 30
Joined: Fri Nov 27, 2015 2:13 pm

Re: SFTP Backup failed [SOLUTION]
  • Quote

Post by jimmyeao » Thu Sep 23, 2021 11:39 am

8 years on and this solved my issue, thank you :)
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password