centos – SFTP不工作,但SSH是

前端之家收集整理的这篇文章主要介绍了centos – SFTP不工作,但SSH是前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一台运行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

原文链接:https://www.f2er.com/centos/373381.html

猜你在找的CentOS相关文章