PHP SSH2 不支持 IdentityFile

有的情况下 我们会用到 类似命令行 

sftp -o IdentityFile=.ssh/identity  username@host
方式 登陆, 想用php 操作, 但是 php 现在看是不支持的, 因为 它只支持SSH2
这种方式是 SSH1 太老了 所以 用下面这个扩展
https://github.com/phpseclib/phpseclib

posted @ 2016-03-02 16:28  Blon  阅读(226)  评论(0编辑  收藏  举报