Client - SetKeypair

[C]

__cdecl FlowSshC_Client_SetKeypair(
  FlowSshC_Client* client,
  FlowSshC_Keypair* keypair);

[C++]

[Client] void SetKeypair(RefPtr<Keypair> const& progress);

[C#]

[ClientBase] public void SetKeypair(Keypair keypair);

Parameters

  • [C] client: FlowSshC_Client pointer.
  • keypair: Keypair to log in with. Note that only the public-key part is known to the server.

Remarks

Use SetKeypair to specify a keypair to log in with. If you set both a password and a keypair, then public-key authentication will be performed first.