Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Linux và các thủ thực nhỏ (http://quantrinet.com/forum/forumdisplay.php?f=430)
-   -   Lỗi không upload được dữ liệu bằng SFTP ssh secure shell (http://quantrinet.com/forum/showthread.php?t=9540)

hoctinhoc 23-10-2013 03:15 PM

Lỗi không upload được dữ liệu bằng SFTP ssh secure shell
 

Lỗi không upload được dữ liệu bằng SFTP ssh secure shell

Hiện tượng: Không thể upload dữ liệu bằng SFTP. Hệ thống báo lỗi "failed to open a secure file transfer session" khi dùng phần mềm SSH Secure Shell

Kiểm tra log tại /var/log/message thì thấy báo lỗi: sshd[283116]: error: subsystem: cannot stat /usr/libexec/sftp-server: no such file or directory


Giải quyết:

Bước 1: Mở tập tin /etc/ssh/sshd_config

Bước 2: Thay dòng /usr/libexec/sftp-server bằng dòng /usr/sbin/sftp-server hoặc /usr/libexec/openssh/sftp-server

Trích dẫn:



# override default of no subsystems
# Subsystem sftp /usr/libexec/sftp-server
Subsystem sftp /usr/libexec/openssh/sftp-server


Bước 3
: Khởi động lại dịch vụ SSH



/etc/init.d/sshd restart


Bây giờ là 03:16 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.