external help file | Module Name | online version | schema |
---|---|---|---|
Posh-SSH-help.xml |
Posh-SSH |
2.0.0 |
Establishes a Dynamic Port Forward thru a stablished SSH Session.
New-SSHDynamicPortForward [[-BoundHost] <String>] [-BoundPort] <Int32> [-SessionId] <Int32>
[<CommonParameters>]
New-SSHDynamicPortForward [[-BoundHost] <String>] [-BoundPort] <Int32> [-SSHSession] <SshSession>
[<CommonParameters>]
Dynamic port forwarding is a transparent mechanism available for applications, which support the SOCKS4 or SOCKS5 client protoco. In windows for best results the local address to bind to should be the IP of the network interface.
New-SSHDynamicPortForward -LocalAdress 192.168.28.131 -LocalPort 8081 -Index 0 -Verbose
VERBOSE: Finding session with Index 0
VERBOSE: 0
VERBOSE: Adding Forward Port Configuration to session 0
VERBOSE: Starting the Port Forward.
VERBOSE: Forwarding has been started.
{{ Fill BoundHost Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Localhost
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill BoundPort Description }}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill SSHSession Description }}
Type: SshSession
Parameter Sets: Session
Aliases: Session
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
{{ Fill SessionId Description }}
Type: Int32
Parameter Sets: Index
Aliases: Index
Required: True
Position: 1
Default value: 0
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.