Inc*_*ito 18 php ssh disconnect
我已经通过ssh2连接ssh2_connect到服务器,但我没有在联机帮助页中看到我应该如何结束连接的任何方法.
在断开连接之前,我并不是在等待脚本结束的粉丝.
我可以用fclose吗?这听起来不错......
Tre*_*non 24
只是unset($connection)您的连接变量或ssh2_exec($connection, 'exit');可能会这样做.
你可以做以下事情,以便更有说服力!
ssh2_exec($connection, 'exit');
unset($connection);
Run Code Online (Sandbox Code Playgroud)