forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssh2.php
769 lines (724 loc) · 20.8 KB
/
ssh2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
<?php
// Start of ssh2 v.0.11.0-dev
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Connect to an SSH server
* @link http://php.net/manual/en/function.ssh2-connect.php
* @param string $host <p>
* </p>
* @param int $port [optional] <p>
* </p>
* @param array $methods [optional] <p>
* methods may be an associative array with up to four parameters
* as described below.
* </p>
* <p>
* <table>
* methods may be an associative array
* with any or all of the following parameters.
* <tr valign="top">
* <td>Index</td>
* <td>Meaning</td>
* <td>Supported Values*</td>
* </tr>
* <tr valign="top">
* <td>kex</td>
* <td>
* List of key exchange methods to advertise, comma separated
* in order of preference.
* </td>
* <td>
* diffie-hellman-group1-sha1,
* diffie-hellman-group14-sha1, and
* diffie-hellman-group-exchange-sha1
* </td>
* </tr>
* <tr valign="top">
* <td>hostkey</td>
* <td>
* List of hostkey methods to advertise, come separated
* in order of preference.
* </td>
* <td>
* ssh-rsa and
* ssh-dss
* </td>
* </tr>
* <tr valign="top">
* <td>client_to_server</td>
* <td>
* Associative array containing crypt, compression, and
* message authentication code (MAC) method preferences
* for messages sent from client to server.
* </td>
* </tr>
* <tr valign="top">
* <td>server_to_client</td>
* <td>
* Associative array containing crypt, compression, and
* message authentication code (MAC) method preferences
* for messages sent from server to client.
* </td>
* </tr>
* </table>
* </p>
* <p>
* * - Supported Values are dependent on methods supported by underlying library.
* See libssh2 documentation for additional
* information.
* </p>
* <p>
* <table>
* client_to_server and
* server_to_client may be an associative array
* with any or all of the following parameters.
* <tr valign="top">
* <td>Index</td>
* <td>Meaning</td>
* <td>Supported Values*</td>
* </tr>
* <tr valign="top">
* <td>crypt</td>
* <td>List of crypto methods to advertise, comma separated
* in order of preference.</td>
* <td>
* aes256-cbc,
* aes192-cbc,
* aes128-cbc,
* 3des-cbc,
* blowfish-cbc,
* cast128-cbc,
* arcfour, and
* none**
* </td>
* </tr>
* <tr valign="top">
* <td>comp</td>
* <td>List of compression methods to advertise, comma separated
* in order of preference.</td>
* <td>
* zlib and
* none
* </td>
* </tr>
* <tr valign="top">
* <td>mac</td>
* <td>List of MAC methods to advertise, come separated
* in order of preference.</td>
* <td>
* hmac-sha1,
* hmac-sha1-96,
* hmac-ripemd160,
* [email protected], and
* none**
* </td>
* </tr>
* </table>
* </p>
* <p>
* Crypt and MAC method "none"
* <p>
* For security reasons, none is disabled by the underlying
* libssh2 library unless explicitly enabled
* during build time by using the appropriate ./configure options. See documentation
* for the underlying library for more information.
* </p>
* </p>
* @param array $callbacks [optional] <p>
* callbacks may be an associative array with any
* or all of the following parameters.
* <table>
* Callbacks parameters
* <tr valign="top">
* <td>Index</td>
* <td>Meaning</td>
* <td>Prototype</td>
* </tr>
* <tr valign="top">
* <td>ignore</td>
* <td>
* Name of function to call when an
* SSH2_MSG_IGNORE packet is received
* </td>
* <td>void ignore_cb($message)</td>
* </tr>
* <tr valign="top">
* <td>debug</td>
* <td>
* Name of function to call when an
* SSH2_MSG_DEBUG packet is received
* </td>
* <td>void debug_cb($message, $language, $always_display)</td>
* </tr>
* <tr valign="top">
* <td>macerror</td>
* <td>
* Name of function to call when a packet is received but the
* message authentication code failed. If the callback returns
* true, the mismatch will be ignored, otherwise the connection
* will be terminated.
* </td>
* <td>bool macerror_cb($packet)</td>
* </tr>
* <tr valign="top">
* <td>disconnect</td>
* <td>
* Name of function to call when an
* SSH2_MSG_DISCONNECT packet is received
* </td>
* <td>void disconnect_cb($reason, $message, $language)</td>
* </tr>
* </table>
* </p>
* @return resource a resource on success, or false on error.
*/
function ssh2_connect ($host, $port = null, $methods = nullarray , $callbacks = nullarray ) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Return list of negotiated methods
* @link http://php.net/manual/en/function.ssh2-methods-negotiated.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @return array
*/
function ssh2_methods_negotiated ($session) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Retrieve fingerprint of remote server
* @link http://php.net/manual/en/function.ssh2-fingerprint.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param int $flags [optional] <p>
* flags may be either of
* SSH2_FINGERPRINT_MD5 or
* SSH2_FINGERPRINT_SHA1 logically ORed with
* SSH2_FINGERPRINT_HEX or
* SSH2_FINGERPRINT_RAW.
* </p>
* @return string the hostkey hash as a string.
*/
function ssh2_fingerprint ($session, $flags = null) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Authenticate as "none"
* @link http://php.net/manual/en/function.ssh2-auth-none.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $username <p>
* Remote user name.
* </p>
* @return mixed true if the server does accept "none" as an authentication
* method, or an array of accepted authentication methods on failure.
*/
function ssh2_auth_none ($session, $username) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Authenticate over SSH using a plain password
* @link http://php.net/manual/en/function.ssh2-auth-password.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $username <p>
* Remote user name.
* </p>
* @param string $password <p>
* Password for username
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_auth_password ($session, $username, $password) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Authenticate using a public key
* @link http://php.net/manual/en/function.ssh2-auth-pubkey-file.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $username <p>
* </p>
* @param string $pubkeyfile <p>
* </p>
* @param string $privkeyfile <p>
* </p>
* @param string $passphrase [optional] <p>
* If privkeyfile is encrypted (which it should
* be), the passphrase must be provided.
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_auth_pubkey_file ($session, $username, $pubkeyfile, $privkeyfile, $passphrase = null) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Authenticate using a public hostkey
* @link http://php.net/manual/en/function.ssh2-auth-hostbased-file.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $username <p>
* </p>
* @param string $hostname <p>
* </p>
* @param string $pubkeyfile <p>
* </p>
* @param string $privkeyfile <p>
* </p>
* @param string $passphrase [optional] <p>
* If privkeyfile is encrypted (which it should
* be), the passphrase must be provided.
* </p>
* @param string $local_username [optional] <p>
* If local_username is omitted, then the value
* for username will be used for it.
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_auth_hostbased_file ($session, $username, $hostname, $pubkeyfile, $privkeyfile, $passphrase = null, $local_username = null) {}
function ssh2_forward_listen () {}
function ssh2_forward_accept () {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Request an interactive shell
* @link http://php.net/manual/en/function.ssh2-shell.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $term_type [optional] <p>
* term_type should correspond to one of the
* entries in the target system's /etc/termcap file.
* </p>
* @param array $env [optional] <p>
* env may be passed as an associative array of
* name/value pairs to set in the target environment.
* </p>
* @param int $width [optional] <p>
* Width of the virtual terminal.
* </p>
* @param int $height [optional] <p>
* Height of the virtual terminal.
* </p>
* @param int $width_height_type [optional] <p>
* width_height_type should be one of
* SSH2_TERM_UNIT_CHARS or
* SSH2_TERM_UNIT_PIXELS.
* </p>
* @return resource
*/
function ssh2_shell ($session, $term_type = null, $env = nullarray , $width = null, $height = null, $width_height_type = null) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Execute a command on a remote server
* @link http://php.net/manual/en/function.ssh2-exec.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $command <p>
* </p>
* @param string $pty [optional] <p>
* </p>
* @param array $env [optional] <p>
* env may be passed as an associative array of
* name/value pairs to set in the target environment.
* </p>
* @param int $width [optional] <p>
* Width of the virtual terminal.
* </p>
* @param int $height [optional] <p>
* Height of the virtual terminal.
* </p>
* @param int $width_height_type [optional] <p>
* width_height_type should be one of
* SSH2_TERM_UNIT_CHARS or
* SSH2_TERM_UNIT_PIXELS.
* </p>
* @return resource a stream on success or false on failure.
*/
function ssh2_exec ($session, $command, $pty = null, $env = nullarray , $width = null, $height = null, $width_height_type = null) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Open a tunnel through a remote server
* @link http://php.net/manual/en/function.ssh2-tunnel.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $host <p>
* </p>
* @param int $port <p>
* </p>
* @return resource
*/
function ssh2_tunnel ($session, $host, $port) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Request a file via SCP
* @link http://php.net/manual/en/function.ssh2-scp-recv.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $remote_file <p>
* Path to the remote file.
* </p>
* @param string $local_file <p>
* Path to the local file.
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_scp_recv ($session, $remote_file, $local_file) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Send a file via SCP
* @link http://php.net/manual/en/function.ssh2-scp-send.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @param string $local_file <p>
* Path to the local file.
* </p>
* @param string $remote_file <p>
* Path to the remote file.
* </p>
* @param int $create_mode [optional] <p>
* The file will be created with the mode specified by
* create_mode.
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_scp_send ($session, $local_file, $remote_file, $create_mode = null) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Fetch an extended data stream
* @link http://php.net/manual/en/function.ssh2-fetch-stream.php
* @param resource $channel <p>
* </p>
* @param int $streamid <p>
* An SSH2 channel stream.
* </p>
* @return resource the requested stream resource.
*/
function ssh2_fetch_stream ($channel, $streamid) {}
/**
* @param $var1
*/
function ssh2_poll (&$var1) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Initialize SFTP subsystem
* @link http://php.net/manual/en/function.ssh2-sftp.php
* @param resource $session <p>
* An SSH connection link identifier, obtained from a call to
* ssh2_connect.
* </p>
* @return resource This method returns an SSH2 SFTP resource for use with
* all other ssh2_sftp_*() methods and the
* ssh2.sftp:// fopen wrapper.
*/
function ssh2_sftp ($session) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Rename a remote file
* @link http://php.net/manual/en/function.ssh2-sftp-rename.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $from <p>
* The current file that is being renamed.
* </p>
* @param string $to <p>
* The new file name that replaces from.
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_sftp_rename ($sftp, $from, $to) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Delete a file
* @link http://php.net/manual/en/function.ssh2-sftp-unlink.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $filename <p>
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_sftp_unlink ($sftp, $filename) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Create a directory
* @link http://php.net/manual/en/function.ssh2-sftp-mkdir.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $dirname <p>
* Path of the new directory.
* </p>
* @param int $mode [optional] <p>
* Permissions on the new directory.
* </p>
* @param bool $recursive [optional] <p>
* If recursive is true any parent directories
* required for dirname will be automatically created as well.
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_sftp_mkdir ($sftp, $dirname, $mode = null, $recursive = null) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Remove a directory
* @link http://php.net/manual/en/function.ssh2-sftp-rmdir.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $dirname <p>
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_sftp_rmdir ($sftp, $dirname) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Stat a file on a remote filesystem
* @link http://php.net/manual/en/function.ssh2-sftp-stat.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $path <p>
* </p>
* @return array See the documentation for stat for details on the
* values which may be returned.
*/
function ssh2_sftp_stat ($sftp, $path) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Stat a symbolic link
* @link http://php.net/manual/en/function.ssh2-sftp-lstat.php
* @param resource $sftp <p>
* </p>
* @param string $path <p>
* Path to the remote symbolic link.
* </p>
* @return array See the documentation for stat for details on the
* values which may be returned.
*/
function ssh2_sftp_lstat ($sftp, $path) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Create a symlink
* @link http://php.net/manual/en/function.ssh2-sftp-symlink.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $target <p>
* Target of the symbolic link.
* </p>
* @param string $link <p>
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_sftp_symlink ($sftp, $target, $link) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Return the target of a symbolic link
* @link http://php.net/manual/en/function.ssh2-sftp-readlink.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $link <p>
* Path of the symbolic link.
* </p>
* @return string the target of the symbolic link.
*/
function ssh2_sftp_readlink ($sftp, $link) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Resolve the realpath of a provided path string
* @link http://php.net/manual/en/function.ssh2-sftp-realpath.php
* @param resource $sftp <p>
* An SSH2 SFTP resource opened by ssh2_sftp.
* </p>
* @param string $filename <p>
* </p>
* @return string the real path as a string.
*/
function ssh2_sftp_realpath ($sftp, $filename) {}
/**
* (PECL ssh2 >= 0.10)<br/>
* Initialize Publickey subsystem
* @link http://php.net/manual/en/function.ssh2-publickey-init.php
* @param resource $session <p>
* </p>
* @return resource an SSH2 Publickey Subsystem resource for use
* with all other ssh2_publickey_*() methods or false on failure.
*/
function ssh2_publickey_init ($session) {}
/**
* (PECL ssh2 >= 0.10)<br/>
* Add an authorized publickey
* @link http://php.net/manual/en/function.ssh2-publickey-add.php
* @param resource $pkey <p>
* Publickey Subsystem resource created by ssh2_publickey_init.
* </p>
* @param string $algoname <p>
* Publickey algorithm (e.g.): ssh-dss, ssh-rsa
* </p>
* @param string $blob <p>
* Publickey blob as raw binary data
* </p>
* @param bool $overwrite [optional] <p>
* If the specified key already exists, should it be overwritten?
* </p>
* @param array $attributes [optional] <p>
* Associative array of attributes to assign to this public key.
* Refer to ietf-secsh-publickey-subsystem for a list of supported attributes.
* To mark an attribute as mandatory, precede its name with an asterisk.
* If the server is unable to support an attribute marked mandatory,
* it will abort the add process.
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_publickey_add ($pkey, $algoname, $blob, $overwrite = null, $attributes = nullarray ) {}
/**
* (PECL ssh2 >= 0.10)<br/>
* Remove an authorized publickey
* @link http://php.net/manual/en/function.ssh2-publickey-remove.php
* @param resource $pkey <p>
* Publickey Subsystem Resource
* </p>
* @param string $algoname <p>
* Publickey algorithm (e.g.): ssh-dss, ssh-rsa
* </p>
* @param string $blob <p>
* Publickey blob as raw binary data
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_publickey_remove ($pkey, $algoname, $blob) {}
/**
* (PECL ssh2 >= 0.10)<br/>
* List currently authorized publickeys
* @link http://php.net/manual/en/function.ssh2-publickey-list.php
* @param resource $pkey <p>
* Publickey Subsystem resource
* </p>
* @return array a numerically indexed array of keys,
* each of which is an associative array containing:
* name, blob, and attrs elements.
* </p>
* <p>
* <table>
* Publickey elements
* <tr valign="top">
* <td>Array Key</td>
* <td>Meaning</td>
* </tr>
* <tr valign="top">
* <td>name</td>
* <td>Name of algorithm used by this publickey, for example:
* ssh-dss or ssh-rsa.</td>
* </tr>
* <tr valign="top">
* <td>blob</td>
* <td>Publickey blob as raw binary data.</td>
* </tr>
* <tr valign="top">
* <td>attrs</td>
* <td>Attributes assigned to this publickey. The most common
* attribute, and the only one supported by publickey version 1
* servers, is comment, which may be any freeform
* string.</td>
* </tr>
* </table>
*/
function ssh2_publickey_list ($pkey) {}
/**
* Flag to ssh2_fingerprint requesting hostkey
* fingerprint as an MD5 hash.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_FINGERPRINT_MD5', 0);
/**
* Flag to ssh2_fingerprint requesting hostkey
* fingerprint as an SHA1 hash.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_FINGERPRINT_SHA1', 1);
/**
* Flag to ssh2_fingerprint requesting hostkey
* fingerprint as a string of hexits.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_FINGERPRINT_HEX', 0);
/**
* Flag to ssh2_fingerprint requesting hostkey
* fingerprint as a raw string of 8-bit characters.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_FINGERPRINT_RAW', 2);
/**
* Flag to ssh2_shell specifying that
* width and height
* are provided as character sizes.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_TERM_UNIT_CHARS', 0);
/**
* Flag to ssh2_shell specifying that
* width and height
* are provided in pixel units.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_TERM_UNIT_PIXELS', 1);
/**
* Default terminal type (e.g. vt102, ansi, xterm, vanilla) requested
* by ssh2_shell.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_DEFAULT_TERMINAL', "vanilla");
/**
* Default terminal width requested by ssh2_shell.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_DEFAULT_TERM_WIDTH', 80);
/**
* Default terminal height requested by ssh2_shell.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_DEFAULT_TERM_HEIGHT', 25);
/**
* Default terminal units requested by ssh2_shell.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_DEFAULT_TERM_UNIT', 0);
/**
* Flag to ssh2_fetch_stream requesting STDIO subchannel.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_STREAM_STDIO', 0);
/**
* Flag to ssh2_fetch_stream requesting STDERR subchannel.
* @link http://php.net/manual/en/ssh2.constants.php
*/
define ('SSH2_STREAM_STDERR', 1);
define ('SSH2_POLLIN', 1);
define ('SSH2_POLLEXT', 2);
define ('SSH2_POLLOUT', 4);
define ('SSH2_POLLERR', 8);
define ('SSH2_POLLHUP', 16);
define ('SSH2_POLLNVAL', 32);
define ('SSH2_POLL_SESSION_CLOSED', 16);
define ('SSH2_POLL_CHANNEL_CLOSED', 128);
define ('SSH2_POLL_LISTENER_CLOSED', 128);
// End of ssh2 v.0.11.0-dev
?>