< Back

New-SSHRemotePortForward

Sat Jan 18, 2020 7:58 pm

NAME New-SSHRemotePortForward



SYNOPSIS

Port forward a local port as a port on a remote server.





SYNTAX

New-SSHRemotePortForward -Index <Int32> -LocalAdress <String> -LocalPort <Int32> -RemoteAddress <String>

-RemotePort <Int32> [<CommonParameters>]



New-SSHRemotePortForward -LocalAdress <String> -LocalPort <Int32> -RemoteAddress <String> -RemotePort <Int32>

-SSHSession <SshSession> [<CommonParameters>]





DESCRIPTION

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.





PARAMETERS

-Index <Int32>

{{Fill Index Description}}



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-LocalAdress <String>

{{Fill LocalAdress Description}}



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-LocalPort <Int32>

{{Fill LocalPort Description}}



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RemoteAddress <String>

{{Fill RemoteAddress Description}}



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RemotePort <Int32>

{{Fill RemotePort Description}}



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SSHSession <SshSession>

{{Fill SSHSession Description}}



Required? true

Position? named

Default value None

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

SSH.SshSession

System.Int32





OUTPUTS

System.Object







NOTES









Example 1



PS C:\\> {{ Add example code here }}



{{ Add example description here }}



RELATED LINKS

Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs