Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.ssh2 auth hostbased file
.ssh2 auth none
.ssh2 auth password
.ssh2 auth pubkey file
.ssh2 connect
.ssh2 exec
.ssh2 fetch stream
.ssh2 fingerprint
.ssh2 methods negotiated
.ssh2 publickey add
.ssh2 publickey init
.ssh2 publickey list
.ssh2 publickey remove
.ssh2 scp recv
.ssh2 scp send
.ssh2 sftp lstat
.ssh2 sftp mkdir
.ssh2 sftp readlink
.ssh2 sftp realpath
.ssh2 sftp rename
.ssh2 sftp rmdir
.ssh2 sftp stat
.ssh2 sftp symlink
.ssh2 sftp unlink
.ssh2 sftp
.ssh2 shell
.ssh2 tunnel
 
   

  ssh2_shell  


ssh2_shell

(PECL)

ssh2_shell --  Demande un shell intéractif

Description

resource ssh2_shell ( resource session [, string term_type [, array env [, int width [, int height [, int width_height_type]]]]] )

ssh2_shell() ouvre un shell sur le serveur distant et lui alloue un flux.

ssh2_shell() ouvre un shell sur le serveur distant et lui alloue un flux. term_type doit correspondre à une des entrées du fichier /etc/termcap du système cible et vaut par défaut vanilla. env doit être passé en tant qu'un tableau associatif de paire nom/valeur à définir dans l'environnement cible.

width et height définissent la hauteur et la largeur du terminal virtuel alloué au processus du shell. width_height_type doit être soit SSH2_TERM_UNIT_CHARS, soit SSH2_TERM_UNIT_PIXELS.

Exemple 1. Exécution d'une commande

<?php
$connection
= ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');

$stream = ssh2_shell($connection, 'vt102', null, 80, 24, SSH2_TERM_UNIT_CHARS);
?>

Voir aussi ssh2_exec(), ssh2_tunnel() et ssh2_fetch_stream().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.