Linux (openSUSE 15.3 ) server ssh 可以使用,sftp无法使用

2022/1/28 7:08:14

本文主要是介绍Linux (openSUSE 15.3 ) server ssh 可以使用,sftp无法使用,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

遇到一个小问题,windows的mobaxterm ssh客户端提供的sftp的浏览器,只能浏览,无法从 Linux服务器上传下载文件,记录下解决方法

ssh的功能是正常的,就使用 sftp.exe 单独连接服务器,发现链接鉴权之后,立马就断开了

sftp wang@192.168.28.20
Password:
Received message too long 1751477356
Ensure the remote shell produces no output for non-interactive sessions.

开始 google 大法

解法一

把.bashrc中加入的fortune命令移除就好了

解法二

把 /etc/ssh/sshd_config中的配置sftp的行

Subsystem sftp /usr/lib/openssh/sftp-server

替换为

Subsystem sftp internal-sftp

参考链接
https://unix.stackexchange.com/questions/61580/sftp-gives-an-error-received-message-too-long-and-what-is-the-reason



这篇关于Linux (openSUSE 15.3 ) server ssh 可以使用,sftp无法使用的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程