< Back

New-SSHDynamicPortForward

Sat Jan 18, 2020 7:58 pm

NAME New-SSHDynamicPortForward



SYNOPSIS

Establishes a Dynamic Port Forward thru a stablished SSH Session.





SYNTAX

New-SSHDynamicPortForward [-BoundHost] <String> [-BoundPort] <Int32> [-SessionId] <Int32> [<CommonParameters>]



New-SSHDynamicPortForward [-BoundHost] <String> [-BoundPort] <Int32> [-SSHSession] <SshSession>

[<CommonParameters>]





DESCRIPTION

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.





PARAMETERS

-BoundHost <String>



Required? true

Position? 2

Default value localhost

Accept pipeline input? false

Accept wildcard characters? false



-BoundPort <Int32>



Required? true

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-SSHSession <SshSession>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-SessionId <Int32>



Required? true

Position? 1

Default value 0

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>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.











RELATED LINKS