我现在已经浪费了一个多小时,我认为这应该很简单......
我有一个 azure 网站,它允许我使用 sftp 连接和部署到它。我可以使用 FileZilla 通过以下设置很好地连接到它:
不过,我不想使用 FileZilla 连接到它。我想使用命令行移动文件。我一直在尝试使用sftp
,ftp
并scp
均无功而返。最后,他们都失败了:
$ sftp -v -oPort=990 user@xxxxx.ftp.azurewebsites.windows.net
OpenSSH_7.9p1, OpenSSL 1.0.2r 26 Feb 2019
debug1: Reading configuration data /home/rg/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 17: Applying options for *
debug1: Connecting to xxxxxxx.azurewebsites.windows.net [xxx.xxx.xxx.xxx] port 990.
debug1: Connection established.
debug1: identity file /home/rg/.ssh/id_rsa type 0
debug1: identity file /home/rg/.ssh/id_rsa-cert type -1
debug1: identity file /home/rg/.ssh/id_dsa type -1
debug1: identity file /home/rg/.ssh/id_dsa-cert type -1
debug1: identity file /home/rg/.ssh/id_ecdsa type -1
debug1: identity file /home/rg/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/rg/.ssh/id_ed25519 type -1
debug1: identity file /home/rg/.ssh/id_ed25519-cert type -1
debug1: identity file /home/rg/.ssh/id_xmss type -1
debug1: identity file /home/rg/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
ssh_exchange_identification: Connection closed by remote host
Connection closed.
Connection closed
Run Code Online (Sandbox Code Playgroud)
我已经测试过使用中的 OpenSSL 版本支持 TLS 1.2。已知主机中的主机也没有另一个指纹。
我希望有人能在这里帮助我。
FTP(通过 TLS)不是 SFTP。
如果您可以使用 FTP 与 FileZilla 进行连接,则必须使用命令行 FTP 客户端。不是 SFTP 客户端。尽管并非所有命令行 FTP 客户端都支持 TLS 加密。
这又是 FTP 和 SSH 之间的混淆:
FileZilla 两者都支持。
归档时间: |
|
查看次数: |
3611 次 |
最近记录: |