Skip to content

Latest commit

 

History

History
145 lines (111 loc) · 2.64 KB

New-SSHRemotePortForward.md

File metadata and controls

145 lines (111 loc) · 2.64 KB
external help file Module Name online version schema
Posh-SSH-help.xml
Posh-SSH
2.0.0

New-SSHRemotePortForward

SYNOPSIS

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

SYNTAX

Index (Default)

New-SSHRemotePortForward [-LocalAdress <String>] -LocalPort <Int32> -RemoteAddress <String> -RemotePort <Int32>
 -Index <Int32> [<CommonParameters>]

Session

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.

EXAMPLES

Example 1

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

{{ Add example description here }}

PARAMETERS

-Index

{{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

-LocalAdress

{{Fill LocalAdress Description}}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LocalPort

{{Fill LocalPort Description}}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RemoteAddress

{{Fill RemoteAddress Description}}

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RemotePort

{{Fill RemotePort Description}}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SSHSession

{{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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

SSH.SshSession

System.Int32

OUTPUTS

System.Object

NOTES

RELATED LINKS