如果服务器不允许 SSH 连接,扭曲的 SFTP 客户端可以工作吗?
Can twisted SFTP-client work if the server does not allow SSH connection?
我有一个 Solaris 10 系统,带有 Python 2.6.4,我必须通过 SFTP 协议从服务器检索文件,该服务器不允许 SSH 登录,即仅 SFTP允许使用 RSA 密钥。谁能告诉我:
- 这可能吗?
- 以上版本的 Python 是否可行,或者我需要将其升级到 2.7。* 使用最新版本的 Twisted?
我找到了这个款待相关信息:twisted conch filetransfer
还有这个:Python Twisted: twisted conch filetransfer verifyHostKey
不过那里说Twisted先创建SSH通道,然后在上面建立SFTP(原谅我可能的误解and/or文盲),出自Twisteddocumentation:
Conch also provides an endpoint that is initialized with an already established SSH connection. This endpoint just opens a new channel on the existing connection and launches a command in that.
如果您无法通过 SSH 登录,同样的方法是否有效? IE。如果禁止终端SSH登录,是否可以创建SSH通道?
除了Paramico,还有其他方法可以帮助我"No"解决上述问题吗?
我对"Twisted"一无所知。但我相信你只是遇到了术语问题。
which does not allow the SSH logging in, i.e. only SFTP with RSA key is allowed
以上都是废话。您不能允许 SFTP,但不允许 SSH,因为正如您已经在 Twisted 文档中找到的那样,SFTP 在 SSH 之上运行(这通常是正确的,这与 Twisted 无关)。
您的服务器最有可能 "does not allow" 是 "shell" 访问。这与 SSH 不同。所以服务器允许SSH,允许SFTP,但是不允许shell.
我有一个 Solaris 10 系统,带有 Python 2.6.4,我必须通过 SFTP 协议从服务器检索文件,该服务器不允许 SSH 登录,即仅 SFTP允许使用 RSA 密钥。谁能告诉我:
- 这可能吗?
- 以上版本的 Python 是否可行,或者我需要将其升级到 2.7。* 使用最新版本的 Twisted?
我找到了这个款待相关信息:twisted conch filetransfer 还有这个:Python Twisted: twisted conch filetransfer verifyHostKey 不过那里说Twisted先创建SSH通道,然后在上面建立SFTP(原谅我可能的误解and/or文盲),出自Twisteddocumentation:
Conch also provides an endpoint that is initialized with an already established SSH connection. This endpoint just opens a new channel on the existing connection and launches a command in that.
如果您无法通过 SSH 登录,同样的方法是否有效? IE。如果禁止终端SSH登录,是否可以创建SSH通道?
除了Paramico,还有其他方法可以帮助我"No"解决上述问题吗?
我对"Twisted"一无所知。但我相信你只是遇到了术语问题。
which does not allow the SSH logging in, i.e. only SFTP with RSA key is allowed
以上都是废话。您不能允许 SFTP,但不允许 SSH,因为正如您已经在 Twisted 文档中找到的那样,SFTP 在 SSH 之上运行(这通常是正确的,这与 Twisted 无关)。
您的服务器最有可能 "does not allow" 是 "shell" 访问。这与 SSH 不同。所以服务器允许SSH,允许SFTP,但是不允许shell.