Home > PHP > Function > SSH2 > ssh2_sftp()

ssh2_sftp()

ssh2_sftp - Initialize SFTP subsystem

Syntax

resource ssh2_sftp (resource $session)

Arguments

  • session - An SSH connection link identifier, obtained from a call to ssh2_connect().

Description

Request the SFTP subsystem from an already connected SSH2 server.

Version

PHP PECL ssh2 >= 0.9.0

Return value

This method returns an SSH2 SFTPresource for use with all other ssh2_sftp_*() methods and the ssh2.sftp://fopen wrapper.