Authentication by password and public key
Authentication by password and public key
How can I specify both authentication methods password and public key required?
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.
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.
-
- Posts: 1
- Joined: Wed 02 Jan 2019 11:31
Re: Authentication by password and public key
It's a big limitation!
Re: Authentication by password and public key
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.
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.