mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 17:17:26 +01:00
SSH2: try to execute commands via interactive shell even if no pty
This commit is contained in:
parent
55d43a9972
commit
df45abcda0
@ -2224,8 +2224,9 @@ class Net_SSH2 {
|
|||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case NET_SSH2_MSG_CHANNEL_SUCCESS:
|
case NET_SSH2_MSG_CHANNEL_SUCCESS:
|
||||||
break;
|
// if a pty can't be opened maybe commands can still be executed
|
||||||
case NET_SSH2_MSG_CHANNEL_FAILURE:
|
case NET_SSH2_MSG_CHANNEL_FAILURE:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
user_error('Unable to request pseudo-terminal');
|
user_error('Unable to request pseudo-terminal');
|
||||||
return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
|
return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
|
||||||
|
Loading…
Reference in New Issue
Block a user