Create a new ssh key credential object used for querying an ssh-agent. The supplied credential parameter will be internally duplicated.
The newly created credential object.
username to use to authenticate
0 for success or an error code for failure
See Implementation
Create a new ssh key credential object used for querying an ssh-agent. The supplied credential parameter will be internally duplicated.