我有一台运行CentOS的服务器已经有几个月了.几天前,我无法通过SFTP连接到它.我尝试过多台计算机,操作系统,客户端和互联网连接.不过,我可以通过SSH来解决问题.例如,Nautilus给了我这个:
Error: DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply,the message bus security policy blocked the reply,the reply timeout expired,or the network connection was broken. Please select another viewer and try again.
我的印象是SFTP只是纯粹的SSH,如果一个工作,另一个工作,反之亦然.但显然情况并非如此.我能做错什么?
只是添加这个以防其他人偶然发现这个.
我遇到了类似的问题,其中SSH正在运行但SFTP却没有.
这是帮助的entry from the OpenSSH FAQ.
2.9 – sftp/scp fails at connection,but ssh is OK.
sftp and/or scp may fail at connection time if you have shell initialization (.profile,.bashrc,.cshrc,etc) which produces output for non-interactive sessions. This output confuses the sftp/scp client. You can verify if your shell is doing this by executing:
ssh yourhost /usr/bin/true
If the above command produces any output,then you need to modify your shell initialization.
在我的情况下,我的.bashrc中有一些东西
我在命令的末尾添加了以下内容以停止输出.
> /dev/null 2>&1
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。