< Back

Remove-SSHSession

Sat Jan 18, 2020 7:59 pm

NAME Remove-SSHSession



SYNOPSIS

Removes and Closes an existing SSH Session.





SYNTAX

Remove-SSHSession [-SessionId] <Int32[]> [<CommonParameters>]



Remove-SSHSession [[-SSHSession] <SshSession[]>] [<CommonParameters>]





DESCRIPTION

Removes and Closes an existing SSH Session. The session can be a SSH Session object or they can be specified by

Session Id





PARAMETERS

-SessionId <Int32[]>

Session Id for an exiting SSH session.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SSHSession <SshSession[]>

SSH Session Object for an exiting session.



Required? false

Position? 0

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

System.Int32[]





SSH.SshSession[]







OUTPUTS



NOTES





AUTHOR: Carlos Perez carlos_perez@darkoprator.com



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



Remove-SSHSession -SessionId 0

True



Remove a SSH Session specified by SessionId



RELATED LINKS

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