external help file | Module Name | online version | schema |
---|---|---|---|
Posh-SSH.psm1-Help.xml |
Posh-SSH |
2.0.0 |
Creates a SSH shell stream for a given SSH Session.
New-SSHShellStream [-SessionId] <Int32> [-TerminalName <String>] [-Columns <Int32>] [-Rows <Int32>]
[-Width <Int32>] [-Height <Int32>] [-BufferSize <Int32>] [<CommonParameters>]
New-SSHShellStream [-SSHSession] <SshSession> [-TerminalName <String>] [-Columns <Int32>] [-Rows <Int32>]
[-Width <Int32>] [-Height <Int32>] [-BufferSize <Int32>] [<CommonParameters>]
Creates a SSH shell stream for a given SSH Session.
$SSHStream = New-SSHShellStream -Index 0
PS C:\> $SSHStream.WriteLine("uname -a")
PS C:\> $SSHStream.read()
Last login: Sat Mar 14 20:02:16 2015 from infidel01.darkoperator.com
[admin@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[admin@localhost ~]$
SSH Session Id for an existing session.
Type: Int32
Parameter Sets: Index
Aliases: Index
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Name of the terminal.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The columns
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 80
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The rows.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 24
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The width.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 800
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The height.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 600
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Size of the buffer.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1000
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
SSH Session Object for an existing session.
Type: SshSession
Parameter Sets: Session
Aliases: Session
Required: True
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.