For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RDMPersonalSSHKey

Synopsis

Set 'My Personal SSH key' from 'My Account Settings'

Syntax

InputObject

Set-RDMPersonalSSHKey -InputObject <PSConnection> [-ForcePromptAnswer <DialogResult[]>]
 [<CommonParameters>]

Name

Set-RDMPersonalSSHKey -Key <PSSSHKey> [-UserName <string>] [-Password <securestring>]
 [-Passphrase <securestring>] [-SavePassphrase <bool>] [-AutomaticallyLoadToKeyAgent]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Filename

Set-RDMPersonalSSHKey -Filename <string> [-UserName <string>] [-Password <securestring>]
 [-Passphrase <securestring>] [-SavePassphrase <bool>] [-AutomaticallyLoadToKeyAgent]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Description

Set 'My Personal SSH key' from 'My Account Settings'. It can be updated in three ways:

  1. InputObject: From a PSConnection object obtained from Get-RDMPersonalSSHKey.

  2. Key: From a new SSH key obtained from New-RDMSSHKey.

  3. Filename: From a private key file ('.pri', '.ppk', '.key')

Examples

Example 1

Modify 'My Personal SSH Key' to automatically load to SSH key agent

Example 2

Create a new PSSHKey and save it as 'My Personal SSH Key'

Example 3

Change the private key file for 'My Personal SSH Key'

Parameters

-AutomaticallyLoadToKeyAgent

Automatically load to SSH key agent

-Filename

Private key file ('.pri', '.ppk', '.key

-ForcePromptAnswer

Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:

  • Yes: Accept the prompt. Cover the OK and Automatic value.

  • No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

-InputObject

Entry representing 'My Personal SSH Key'

-Key

SSH key generated with New-RDMSSHKey

-Passphrase

Passphrase for the private key

-Password

Overrides the password

-SavePassphrase

Save the passphrase in the credential

-UserName

Overrides the username

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

PSConnection object obtained from Get-RDMPersonalSSHKey

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSSSHKey

PSSSHKey object obtained from New-RDMSSHkey

Notes

For more information, type "Get-Help Set-RDMPersonalSSHKey -detailed". For technical information, type "Get-Help Set-RDMPersonalSSHKey -full".

Last updated

Was this helpful?