Two factor authentication

Core FTP client questions and answers
Locked
nk_ref
Posts: 1
Joined: Mon Aug 19, 2019 3:21 pm

Two factor authentication

Post by nk_ref »

Does anyone know, if we can do a Key and password authentication (two factor) in CoreFTP.
Something like this:

var connectionInfo = new ConnectionInfo(Host, Port, UserName,
new PasswordAuthenticationMethod("USERNAME", "PASSWORD"),
new PrivateKeyAuthenticationMethod("UserName", "PrivateKey"));
using (var sftp = new SftpClient(connectionInfo))
ForumAdmin
Site Admin
Posts: 984
Joined: Mon Mar 24, 2003 4:37 am

Re: Two factor authentication

Post by ForumAdmin »

via the command line you can specify your regular connection info and then -keyfile <keyfile> pass

see help file topic "command line"
Locked