php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63518 Need ability to request pseudo-tty for SSH sessions
Submitted: 2012-11-14 16:40 UTC Modified: -
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: il dot basso dot buffo at gmail dot com Assigned:
Status: Open Package: ssh2 (PECL)
PHP Version: 5.4.8 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-11-14 16:40 UTC] il dot basso dot buffo at gmail dot com
Description:
------------
There should be some means of requesting a pseudo-tty for a session.  This is equivalent to the command-line options of '-t' or '-t -t', or the ssh_config option of RequestTTY (valid values are no, yes, force or auto, corresponding to -T, -t, -t -t, and no t option, respectively).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-19 17:36 UTC] zelnaga at gmail dot com
Does this do what you want? (uses http://phpseclib.sourceforge.net/):

<?php
include('Net/SSH2.php');

$ssh = new Net_SSH2('www.domain.tld');
if (!$ssh->login('username', 'password')) {
    exit('Login Failed');
}

echo $ssh->read('username@username:~$');
$ssh->write("ls -la\n");
echo $ssh->read('username@username:~$');
?>
 [2012-12-09 10:53 UTC] langemeijer@php.net
Sent an email for clarification as I expect this really is a support question.

zelnaga - Please refrain from plastering phpseclib all over our bugtracker. This 
is not a support forum. It's a bug and feature request database.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Aug 22 09:01:27 2019 UTC