< Back
Get-SSHPortForward
Post
NAME Get-SSHPortForward
SYNOPSIS
Get a list of forwarded TCP Ports for a SSH Session
SYNTAX
Get-SSHPortForward [-SessionId] <Int32> [<CommonParameters>]
Get-SSHPortForward [-SSHSession] <SshSession> [<CommonParameters>]
DESCRIPTION
Get a list of forwarded TCP Ports for a SSH Session
PARAMETERS
-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:\\>Get list of configured forwarded ports
PS C:\\> Get-SSHPortForward -Index 0
BoundHost : 0.0.0.0
BoundPort : 8081
Host : 10.10.10.1
Port : 80
IsStarted : True
RELATED LINKS
SYNOPSIS
Get a list of forwarded TCP Ports for a SSH Session
SYNTAX
Get-SSHPortForward [-SessionId] <Int32> [<CommonParameters>]
Get-SSHPortForward [-SSHSession] <SshSession> [<CommonParameters>]
DESCRIPTION
Get a list of forwarded TCP Ports for a SSH Session
PARAMETERS
-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:\\>Get list of configured forwarded ports
PS C:\\> Get-SSHPortForward -Index 0
BoundHost : 0.0.0.0
BoundPort : 8081
Host : 10.10.10.1
Port : 80
IsStarted : True
RELATED LINKS