|  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: 2021-02-21 04:22 UTC
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: cmb (profile)
Status: No Feedback 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
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).


Add a Patch

Pull Requests

Add a Pull Request


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


$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]
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.
 [2021-02-10 14:21 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-10 14:21 UTC]
Yes, this looks like to be covered by ssh2_shell() already.
 [2021-02-21 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 20 17:03:35 2021 UTC