Ssh2_connect函数在PHP中使用bind_address [英] Ssh2_connect function to work with bind_address in PHP

查看:86
本文介绍了Ssh2_connect函数在PHP中使用bind_address的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我想使用php将文件从远程SFTP服务器复制到Linux机器上的本地服务器。但是服务器需要来自1个特定IP地址的任何客户端连接。所以,不知何故,我必须加入bind_address。

你怎么做?



最好的问候

Thayalan



我的尝试:



我试过看网址:www.php.net

Hello,

I want to copy files from the remote SFTP server to the local server on Linux machines using php. But the server needs any client connection to come from 1 particular IP address. Therefore, somehow, I have to incorporate bind_address.
How do you do that?

Best Regards
Thayalan

What I have tried:

I have tried looking at the url: www.php.net

推荐答案

您好,



我更喜欢使用ssh2_connect但bind_address是存在于套接字编码中。我认为使用套接字编码,很难分成文件。



最好的问候

Thayalan
Hello,

I prefer using ssh2_connect but bind_address is present in socket coding. I think with socket coding, it is difficult to separate into files.

Best Regards
Thayalan


这篇关于Ssh2_connect函数在PHP中使用bind_address的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆