Centos 6.3 and Authentication failed

Asked by R.Roberts

This is our first time installing and using Duplicity.

Have users successfully installed on Centos 6.3?

In general, looks like we have a working installation but are ecountering autneticaion issues:

duplicity /disk2/myproj scp://user1:password@192.168.1.10/testdir/subversion
BackendException: ssh connection to user1@192.168.1.10:22 failed: Authentication failed.

From a command the following works, so we don't know what else might be wrong.

# ssh user1@192.168.1.10

Any help would be greatly appreciated!

Thx,
-Rod

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
edso (ed.so) said :
#1

On 24.06.2013 20:01, R.Roberts wrote:
> New question #231300 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/231300
>
>
> This is our first time installing and using Duplicity.
>
> Have users successfully installed on Centos 6.3?
>
> In general, looks like we have a working installation but are ecountering autneticaion issues:
>
> duplicity /disk2/myproj scp://user1:password@192.168.1.10/testdir/subversion
> BackendException: ssh connection to user1@192.168.1.10:22 failed: Authentication failed.
>
>>From a command the following works, so we don't know what else might be wrong.
>
> # ssh user1@192.168.1.10
>
> Any help would be greatly appreciated!
>

which duplicity version? make sure you have the latest greatest 0.6.21.

are you asked for a password? do you use keyauth?

..ede/duply.net

Revision history for this message
Tim Chi (timmy-g-chi) said :
#2

I also have this exact problem. I am using the latest version of duplicity.
It did not prompt me for a password, but when I provide it it has the same authentication failed message.
I do not use keyauth.

Thanks for the help

Revision history for this message
edso (ed.so) said :
#3

what backend do you use? --ssh-backend=pexpect ? you might need --ssh-askpass then. also make sure that the remote machine is already added to your keyring .ssh/known_hosts file.

better? ..ede

Revision history for this message
Tim Chi (timmy-g-chi) said :
#4

Yes, I am using scp
Yes, the remote machine is in the .ssh/known_hosts file
I installed openssh-askpass and tried it again. But it gave me the same result.

Revision history for this message
edso (ed.so) said :
#5

On 26.06.2013 19:16, Tim Chi wrote:
> Question #231300 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/231300
>
> Tim Chi requested more information:
> Yes, I am using scp
> Yes, the remote machine is in the .ssh/known_hosts file
> I installed openssh-askpass and tried it again. But it gave me the same result.
>

--ssh-askpass is a duplicity parameter. see manpage
 http://duplicity.nongnu.org/duplicity.1.html

additionally you might wanna try --ssh-backend=pexpect (also see manpage).

..ede

Revision history for this message
Tim Chi (timmy-g-chi) said :
#6

Oh ok. So I tried this command:

duplicity /source scp://<email address hidden>/destination --ssh-backend=pexpect --ssh-askpass
Password for <email address hidden>: .....

result:
failed (attempt #1): Permission denied
Running 'sftp -oServerAliveInterval=15 -oServerAliveCountMax=2 <email address hidden>' with commands:
mkdir "testdir"
cd "testdir"
mkdir "subversion"
cd "subversion"
ls -1

It would make 5 attempts and the same result would show up.

I double checked that my ~/.ssh/known_hosts file has the machine there.

Revision history for this message
edso (ed.so) said :
#7

well it says
 "Permission denied"

is the user allowed to write at the destination? try manually via sftp client.

..ede/duply.net

Revision history for this message
Tim Chi (timmy-g-chi) said :
#8

Awesome! I got it to work! Thanks for all the help!

Can you help with this problem?

Provide an answer of your own, or ask R.Roberts for more information if necessary.

To post a message you must log in.