FileZilla:能够通过SFTP连接,但无法列出目录

时间:2017-04-05 12:14:45

标签: sftp filezilla

我使用FileZilla通过SFTP协议连接到我的一个Linux服务器,但得到了错误堆栈跟踪。

Status: Connecting to <server_ip>...
Response:   fzSftp started, protocol_version=5
Command:    keyfile "C:\ruifeng_ibm.ppk"
Command:    open "root@<server_ip>" 22
Status: Connected to <server_ip>
Error:  Connection timed out after 20 seconds of inactivity
Error:  Could not connect to server

在我运行lsof -i的服务器上,我能够看到已建立的sshd连接。

sshd    12333 root    3u  IPv4 109406      0t0  TCP <server_hostname>:ssh-><workstation_ip>:54315 (ESTABLISHED)

连接成功后如何才能列出目录?不知道如何调试。

1 个答案:

答案 0 :(得分:0)

原来是一个愚蠢的问题。

我将以下欢迎消息放在.bashrc文件中。

 echo -e "\n\nHello Ruifeng...Welcome to the Arena! \n@>>------>---->>"

它包含一些非法字符FileZilla不尊重,或者FileZilla完全不支持它。懒得进一步挖掘。删除此消息后,连接工作,列出了目录。

相关问题