Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Set-NcSecuritySsh


NAME
Set-NcSecuritySsh

SYNOPSIS
Set SSH configuration options.

SYNTAX
Set-NcSecuritySsh [-KeyExchangeAlgorithm <String[]>] [-Cipher <String[]>] [-
VserverContext <String>] [-Controller <NcController[]>] [<CommonParameters>]

Set-NcSecuritySsh [-AddKeyExchangeAlgorithm <String[]>] [-AddCipher <String[
]>] [-VserverContext <String>] [-Controller <NcController[]>] [<CommonParame
ters>]

Set-NcSecuritySsh [-RemoveKeyExchangeAlgorithm <String[]>] [-RemoveCipher <S
tring[]>] [-VserverContext <String>] [-Controller <NcController[]>] [<Common
Parameters>]


DESCRIPTION
Set SSH configuration options.


PARAMETERS
-KeyExchangeAlgorithm <String[]>
List of SSH key exchange algorithms enabled.

Possible values: diffie_hellman_group_exchange_sha256, diffie_hellman_gr
oup_exchange_sha1, diffie_hellman_group14_sha1, diffie_hellman_group1_sh
a1

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Cipher <String[]>
List of SSH Ciphers enabled.

Possible values: aes256_ctr, aes192_ctr, aes128_ctr, aes256_cbc, aes192
_cbc, aes128_cbc, 3des_cbc

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-AddKeyExchangeAlgorithm <String[]>
List of SSH Key Exchange Algorithms to add.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-AddCipher <String[]>
List of SSH Ciphers to add.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-RemoveKeyExchangeAlgorithm <String[]>
List of SSH Key Exchange Algorithms to remove.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-RemoveCipher <String[]>
List of SSH Ciphers to remove.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DataONTAP.C.Types.Security.SecuritySshInfo


NOTES


Category: security
API: security-ssh-reset,security-ssh-add,security-ssh-remove
Family: vserver

-------------- Example 1 --------------

C:\PS>Set-NcSecuritySsh -RemoveKeyExchangeAlgorithm diffie_hellman_group1_sh
a1 -RemoveCipher 3des_cbc -VserverContext beam_vsim01 -verbose


Remove the given key exchange algorithm and cipher from the SSH security set
tings.


Ciphers KeyExchangeAlgorithms NcController
VserverName
------- --------------------- ------------
-----------
{aes256_ctr, aes192_ctr, a... {diffie_hellman_group_exch... 10.63.58.22
beam_vsim01


-------------- Example 2 --------------

C:\PS>Set-NcSecuritySsh -AddKeyExchangeAlgorithm diffie_hellman_group1_sha1
-AddCipher 3des_cbc -VserverContext beam_vsim01 -verbose


Add the given key exchange algorithm and cipher to the SSH security settings
.


Ciphers KeyExchangeAlgorithms NcController
VserverName
------- --------------------- ------------
-----------
{aes256_ctr, aes192_ctr, a... {diffie_hellman_group_exch... 10.63.58.22
beam_vsim01



RELATED LINKS
Get-NcSecuritySsh







 Data ONTAP® PowerShell Toolkit