Authentication by password and public key

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
farhad
Posts: 7
Joined: Mon 14 May 2007 17:37

Authentication by password and public key

Post by farhad » Mon 06 Aug 2007 09:34

How can I specify both authentication methods password and public key required?

Dimon
Devart Team
Posts: 2889
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 06 Aug 2007 14:30

To use authentication by password specify user's password in the TScSSHClient.Password property and specify atPassword value in the TScSSHClient.Authentication property.
To use authentication by the user's public key specify your private key name in the TScSSHClient.PrivateKeyName property and specify atPublicKey value in the TScSSHClient.Authentication property.

You can not use both authentication methods at the same time.

g.valenzin@gmail.com
Posts: 1
Joined: Wed 02 Jan 2019 11:31

Re: Authentication by password and public key

Post by g.valenzin@gmail.com » Wed 02 Jan 2019 11:32

It's a big limitation!

ViktorV
Devart Team
Posts: 2729
Joined: Wed 30 Jul 2014 07:16

Re: Authentication by password and public key

Post by ViktorV » Thu 03 Jan 2019 08:54

Support for simultaneous usage of public key and password authentication on connecting to SSH server was added in the SecureBridge 6.5.8 from 05-May-15.
For this, you should set the TScSSHClient.Authentication property to atPublicKey, and the properties ScSSHClient.PrivateKeyName and ScSSHClient.Password - to private key name and server password respectively.

Post Reply