You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This parameter takes an array of hashtables where each hashtable contains one or more connection parameters needed to establish a Secure Shell (SSH) connection (HostName, Port, UserName, KeyFilePath).
1251
+
This parameter takes an array of hashtables where each hashtable contains one or more connection parameters needed to establish a Secure Shell (SSH) connection (HostName, Port, UserName, KeyFilePath, Subsystem).
1249
1252
1250
1253
The hashtable connection parameters are the same as defined for the HostName parameter set.
Specifies an array of computer names for a Secure Shell (SSH) based connection. This is similar to the ComputerName parameter except that the connection to the remote computer is made using SSH rather than Windows WinRM.
804
+
805
+
This parameter was introduced in PowerShell 6.0.
806
+
807
+
```yaml
808
+
Type: String[]
809
+
Parameter Sets: HostName
810
+
Aliases:
811
+
812
+
Required: True
813
+
Position: 0
814
+
Default value: None
815
+
Accept pipeline input: False
816
+
Accept wildcard characters: False
817
+
```
818
+
819
+
### -KeyFilePath
820
+
Specifies a key file path used by Secure Shell (SSH) to authenticate a user on a remote computer.
821
+
822
+
SSH allows user authentication to be performed via private/public keys as an alternative to basic password authentication. If the remote computer is configured for key authentication then this parameter can be used to provide the key that identifies the user.
823
+
824
+
This parameter was introduced in PowerShell 6.0.
825
+
826
+
```yaml
827
+
Type: String
828
+
Parameter Sets: HostName
829
+
Aliases:
830
+
831
+
Required: False
832
+
Position: Named
833
+
Default value: None
834
+
Accept pipeline input: False
835
+
Accept wildcard characters: False
836
+
```
837
+
838
+
### -SSHTransport
839
+
Indicates that the remote connection is established using Secure Shell (SSH).
840
+
841
+
By default PowerShell uses Windows WinRM to connect to a remote computer. This switch forces PowerShell to use the HostName parameter set for establishing an SSH based remote connection.
842
+
843
+
This parameter was introduced in PowerShell 6.0.
844
+
845
+
```yaml
846
+
Type: SwitchParameter
847
+
Parameter Sets: HostName
848
+
Aliases:
849
+
850
+
Required: False
851
+
Position: Named
852
+
Default value: None
853
+
Accept pipeline input: False
854
+
Accept wildcard characters: False
855
+
```
856
+
857
+
### -UserName
858
+
Specifies the user name for the account used to create a session on the remote computer. User authentication method will depend on how Secure Shell (SSH) is configured on the remote computer.
859
+
860
+
If SSH is configured for basic password authentication then you will be prompted for the user password.
861
+
862
+
If SSH is configured for key based user authentication then a key file path can be provided via the KeyFilePath parameter and no password prompt will occur. Note that if the client user key file is located in an SSH known location then the KeyFilePath parameter is not needed for key based authentication, and user authentication will occur automatically based on the user name. See SSH documentation about key based user authentication for more information.
863
+
864
+
This is not a required parameter. If no UserName parameter is specified then the current log on user name is used for the connection.
865
+
866
+
This parameter was introduced in PowerShell 6.0.
867
+
868
+
```yaml
869
+
Type: String
870
+
Parameter Sets: HostName
871
+
Aliases:
872
+
873
+
Required: False
874
+
Position: Named
875
+
Default value: None
876
+
Accept pipeline input: False
877
+
Accept wildcard characters: False
878
+
```
879
+
880
+
### -SSHConnection
881
+
This parameter takes an array of hashtables where each hashtable contains one or more connection parameters needed to establish a Secure Shell (SSH) connection (HostName, Port, UserName, KeyFilePath, Subsystem).
882
+
883
+
The hashtable connection parameters are the same as defined for the **HostName** parameter set.
884
+
885
+
The *SSHConnection* parameter is useful for creating multiple sessions where each session requires different connection information.
886
+
887
+
This parameter was introduced in PowerShell 6.0.
888
+
889
+
```yaml
890
+
Type: hashtable
891
+
Parameter Sets: SSHConnection
892
+
Aliases:
893
+
894
+
Required: True
895
+
Position: Named
896
+
Default value: None
897
+
Accept pipeline input: False
898
+
Accept wildcard characters: False
899
+
```
900
+
799
901
### CommonParameters
800
902
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments