Seaf-cli and two factor authentication?


#1

Hi,

how do i download a library with seaf-cli when two factor authentication for the given user is activated?

kind regards,

Christoph


#2

I am investigating the same issue. I am struggling with how to supply the code to my seafile-CLI-Client (instead) of a password. Have you found a solution yet?

Thanks!


#3

No, i didn’t find a solution until now. I’m completely lost on this. De-activating 2FA and Re-activating after synchronising with seaf-cli is no solution for me…


#4

@happenpappen @muellefr seaf-cli is a bit outdated. I revise the code so as to make it support of the two-factor authentication.
I have submitted a pull request in Github: https://github.com/haiwen/seafile/pull/2054/commits/0502cc7172dae1575c4a77b86240a544a693fd61

If you would like to use the new seaf-cli before the patch is officially accepted and released, you can download the file from here: https://github.com/twei7/seafile/blob/4d8a4f78481c7ff3e81c169c4f1507cef1e69b32/app/seaf-cli

Usage is similar, with an addition -a or --tfa argument to supply the 2FA code.
For example: seaf-cli list-remote -s https://url -u test -p pass -a 123456
Let me know if there is any issue.


#5

@1111: thank you, the new client works great.