ClientUserSshKeyImportFromFile Method |
Imports an SSH public key to a user's certificate store from a file.
Namespace: MOVEit.DMZ.APIAssembly: MOVEit.DMZ.API (in MOVEit.DMZ.API.dll) Version: 9.0.0.0
Syntax public bool UserSshKeyImportFromFile(
string Username,
string Filepath
)
Public Function UserSshKeyImportFromFile (
Username As String,
Filepath As String
) As Boolean
public:
bool UserSshKeyImportFromFile(
String^ Username,
String^ Filepath
)
Parameters
- Username
- Type: SystemString
Username of user to add key for. - Filepath
- Type: SystemString
Local path of key file to import.
Return Value
Type:
Booleantrue if successful; otherwise,
false.
Remarks
The key file must contain only the public portion of the key.
See Also