错误: Received unexpected end-of-file from SFTP server
错误:Received unexpected end-of-file from SFTP server
filezlia报错 可能没开sftp吧
cat /etc/ssh/sshd_config |grep sftp 看一下
回复 2# 的帖子
没有反应============
# cat /etc/ssh/sshd_config
MaxAuthTries=3
# cat /etc/ssh/sshd_config |grep
Usage: grep ... PATTERN ...
Try `grep --help' for more information.
# cat /etc/ssh/sshd_config |grep sftp
# cat /etc/ssh/sshd_config |grep sftp
#
=================== 正常使用着的
不知道咋回事突然等不了
重启什么的也不管用
好长时间了 正常情况下应该是有一行 Subsystem sftp *****之类的,没有肯定是动过配置
apt-get install openssh-server 或 yum install openssh-server
看一下
回复 5# 的帖子
# yum install openssh-serverLoaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.hmc.edu
* extras: mirror.keystealth.org
* updates: mirror.hostduplex.com
base | 3.7 kB 00:00
base/primary_db | 3.7 MB 00:00
extras | 3.3 kB 00:00
extras/primary_db |30 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.0 MB 00:00
vz-base |951 B 00:00
vz-updates |951 B 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package openssh-server.i686 0:5.3p1-84.1.el6 will be updated
---> Package openssh-server.i686 0:5.3p1-118.1.el6_8 will be an update
--> Processing Dependency: openssh = 5.3p1-118.1.el6_8 for package: openssh-server-5.3p1-118.1.el6_8.i686
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10) for package: openssh-server-5.3p1-118.1.el6_8.i686
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC) for package: openssh-server-5.3p1-118.1.el6_8.i686
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1) for package: openssh-server-5.3p1-118.1.el6_8.i686
--> Running transaction check
---> Package openssh.i686 0:5.3p1-84.1.el6 will be updated
--> Processing Dependency: openssh = 5.3p1-84.1.el6 for package: openssh-clients-5.3p1-84.1.el6.i686
---> Package openssh.i686 0:5.3p1-118.1.el6_8 will be an update
---> Package openssl.i686 0:1.0.0-27.el6_4.2 will be updated
--> Processing Dependency: openssl = 1.0.0-27.el6_4.2 for package: openssl-devel-1.0.0-27.el6_4.2.i686
---> Package openssl.i686 0:1.0.1e-48.el6_8.1 will be an update
--> Running transaction check
---> Package openssh-clients.i686 0:5.3p1-84.1.el6 will be updated
---> Package openssh-clients.i686 0:5.3p1-118.1.el6_8 will be an update
---> Package openssl-devel.i686 0:1.0.0-27.el6_4.2 will be updated
---> Package openssl-devel.i686 0:1.0.1e-48.el6_8.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Updating:
openssh-server i686 5.3p1-118.1.el6_8 updates 326 k
Updating for dependencies:
openssh i686 5.3p1-118.1.el6_8 updates 279 k
openssh-clients i686 5.3p1-118.1.el6_8 updates 449 k
openssl i686 1.0.1e-48.el6_8.1 updates 1.5 M
openssl-devel i686 1.0.1e-48.el6_8.1 updates 1.2 M
Transaction Summary
========================================================================================================================
Upgrade 5 Package(s)
Total download size: 3.7 M
Is this ok : y
Downloading Packages:
(1/5): openssh-5.3p1-118.1.el6_8.i686.rpm | 279 kB 00:00
(2/5): openssh-clients-5.3p1-118.1.el6_8.i686.rpm | 449 kB 00:00
(3/5): openssh-server-5.3p1-118.1.el6_8.i686.rpm | 326 kB 00:00
(4/5): openssl-1.0.1e-48.el6_8.1.i686.rpm | 1.5 MB 00:00
(5/5): openssl-devel-1.0.1e-48.el6_8.1.i686.rpm | 1.2 MB 00:00
------------------------------------------------------------------------------------------------------------------------
Total 15 MB/s | 3.7 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : openssl-1.0.1e-48.el6_8.1.i686 1/10
Updating : openssl-devel-1.0.1e-48.el6_8.1.i686 2/10
Updating : openssh-5.3p1-118.1.el6_8.i686 3/10
Updating : openssh-clients-5.3p1-118.1.el6_8.i686 4/10
Updating : openssh-server-5.3p1-118.1.el6_8.i686 5/10
warning: /etc/ssh/sshd_config created as /etc/ssh/sshd_config.rpmnew
Cleanup : openssh-server-5.3p1-84.1.el6.i686 6/10
Cleanup : openssh-clients-5.3p1-84.1.el6.i686 7/10
Cleanup : openssh-5.3p1-84.1.el6.i686 8/10
Cleanup : openssl-devel-1.0.0-27.el6_4.2.i686 9/10
Cleanup : openssl-1.0.0-27.el6_4.2.i686 10/10
Verifying: openssl-1.0.1e-48.el6_8.1.i686 1/10
Verifying: openssh-clients-5.3p1-118.1.el6_8.i686 2/10
Verifying: openssh-server-5.3p1-118.1.el6_8.i686 3/10
Verifying: openssh-5.3p1-118.1.el6_8.i686 4/10
Verifying: openssl-devel-1.0.1e-48.el6_8.1.i686 5/10
Verifying: openssh-server-5.3p1-84.1.el6.i686 6/10
Verifying: openssh-clients-5.3p1-84.1.el6.i686 7/10
Verifying: openssh-5.3p1-84.1.el6.i686 8/10
Verifying: openssl-1.0.0-27.el6_4.2.i686 9/10
Verifying: openssl-devel-1.0.0-27.el6_4.2.i686 10/10
Updated:
openssh-server.i686 0:5.3p1-118.1.el6_8
Dependency Updated:
openssh.i686 0:5.3p1-118.1.el6_8 openssh-clients.i686 0:5.3p1-118.1.el6_8 openssl.i686 0:1.0.1e-48.el6_8.1
openssl-devel.i686 0:1.0.1e-48.el6_8.1
Complete!
# cat /etc/ssh/sshd_config |grep sftp
#
跟以前一样啊 ls -l /usr/libexec/openssh/sftp-server 看一下存在不,存在的话
编辑/etc/ssh/sshd_config加上Subsystem sftp /usr/libexec/openssh/sftp-server
重启
还不行就没办法了,就只能付费排查了
页:
[1]