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: 2021-02-21 04:22 UTC
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: cmb (profile)
Status: No Feedback Package: ssh2 (PECL)
PHP Version: 5.4.8 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: il dot basso dot buffo at gmail dot com
New email:
PHP Version: OS:

 

 [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.
 [2021-02-10 14:21 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-10 14:21 UTC] cmb@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC