Page 1 of 1

Authentication by password and public key

Posted: Mon 06 Aug 2007 09:34
by farhad
How can I specify both authentication methods password and public key required?

Posted: Mon 06 Aug 2007 14:30
by Dimon
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.

Re: Authentication by password and public key

Posted: Wed 02 Jan 2019 11:32
It's a big limitation!

Re: Authentication by password and public key

Posted: Thu 03 Jan 2019 08:54
by ViktorV
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.