E
E
EvgMul2017-03-30 11:48:14
PHP
EvgMul, 2017-03-30 11:48:14

Why doesn't PHP see the ssh2_connect() function?

I'm trying to connect to sftp, the PHP manual says that you need to connect via ssh2_connect.
The script throws an error Call to undefined function ssh2_connect(). Can you please tell me how to connect the library, where is this function? In standard php, as I understand it, it is not. I used the instruction www.aplab.ru/log/148 , it did not help.
Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
feeler, 2020-05-10
@EvgMul

add ssh library to php
sudo apt install php-ssh2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question