This project is read-only.

enable pty allocation

Apr 8, 2014 at 2:33 PM
Hi all,

I try to open a ssh connection to a IBM Management Module.
The error on the Server is: "tty name check failed"
If I use plink with -t (enable pty allocation) or putty, everything is working fine.
So my question is: How can I enable the pty allocation with the ssh.net library?

Regards,
Stefan
Apr 10, 2014 at 11:24 AM
Edited Apr 10, 2014 at 11:49 AM
Hello all,

it's me again :-)
On a typicall Linux Client I can use the -t option for connection without tty or pty allocation or to use pseudo allocation.
I found some Links, where the Situation is explained, but unfortunatelly no information inside the Dokumentation how to fix this with ssh.net (renci.ssh).
Has someone a hint to show me right direction?

To explain the Situation a little bit more:
The connection to the Server is working.
I run these commands:
$ErrorActionPreference = 'SilentlyContinue'
$SshClient.Disconnect()
$SshClient.Dispose()
sleep -Seconds 2
$SshClient = New-Object Renci.SshNet.SshClient($ret[11], 22,$ret[8],$ret[9])
$SshClient.Connect()
#So far so good!!!!
$nicinfo = $SshClient.RunCommand("ifconfig eth0")
$output = $nicinfo.CommandText
$output | Out-File $logfile -Append
$output = $nicinfo.Result
$output | Out-File $logfile -Append
# ERROR in Logfile
The Links:
http://stackoverflow.com/questions/10330678/gitolite-pty-allocation-request-failed-on-channel-0/10346575#10346575
http://lugatgt.org/2009/10/28/ssh-tips-and-tricks-2/
http://stackoverflow.com/questions/17900760/what-is-pseudo-tty-allocation-ssh-and-github

Regards,
Stefan