Connexion sftp serveur distant via script php
... / Connexion sftp serveur di...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Connexion sftp serveur distant via script php

by
Jean-baptisteL14
Created on 2018-05-30 16:03:55 (edited on 2024-09-04 13:48:18) in FTP et SSH

Bonjour,

J'ai une offre web cloud performance ovh, et j'ai besoin de me connecter à un serveur distant en sftp via un script php qui se lancera en tâche cron sur mon hébergement ovh chaque jour.

J'ai fait un script de test et il semblerait que les fonctions ssh2 PHP ne sont pas disponibles :

if (function_exists('ssh2_connect')) {
echo "Les fonctions SSH2 sont disponibles.";
} else {
echo "Les fonctions SSH2 ne sont pas disponibles.";
}

=> résultat "Les fonctions SSH2 ne sont pas disponibles."

Quelqu'un a t-il une solution ?


1 Reply ( Latest reply on 2022-02-08 15:11:16 by
Jean-baptisteL14
)

Personne n'a de solution ?