external help file | Module Name | online version | schema |
---|---|---|---|
Posh-SSH-help.xml |
Posh-SSH |
2.0.0 |
Port forward a local port as a port on a remote server.
New-SSHRemotePortForward [-LocalAdress <String>] -LocalPort <Int32> -RemoteAddress <String> -RemotePort <Int32>
-Index <Int32> [<CommonParameters>]
New-SSHRemotePortForward [-LocalAdress <String>] -LocalPort <Int32> -RemoteAddress <String> -RemotePort <Int32>
-SSHSession <SshSession> [<CommonParameters>]
Port forward a local port as a port on a remote server. A connection on the remote host to the forwarded port will be redirected to the local host port.
PS C:\> {{ Add example code here }}
{{ Add example description here }}
{{Fill Index Description}}
Type: Int32
Parameter Sets: Index
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
{{Fill LocalAdress Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill LocalPort Description}}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill RemoteAddress Description}}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill RemotePort Description}}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{Fill SSHSession Description}}
Type: SshSession
Parameter Sets: Session
Aliases: Session
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
System.Int32