external help file | Module Name | online version | schema |
---|---|---|---|
Posh-SSH.psm1-Help.xml |
Posh-SSH |
2.0.0 |
Removes and Closes an existing SSH Session.
Remove-SSHSession [-SessionId] <Int32[]> [<CommonParameters>]
Remove-SSHSession [[-SSHSession] <SshSession[]>] [<CommonParameters>]
Removes and Closes an existing SSH Session. The session can be a SSH Session object or they can be specified by Session Id
Remove-SSHSession -SessionId 0
True
Remove a SSH Session specified by SessionId
Get-SSHSession | Remove-SSHSession
True
True
Remove all sessions
Session Id for an exiting SSH session.
Type: Int32[]
Parameter Sets: Index
Aliases: Index
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
SSH Session Object for an exiting session.
Type: SshSession[]
Parameter Sets: Session
Aliases: Name
Required: False
Position: 0
Default value: None
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.
AUTHOR: Carlos Perez [email protected]