View Single Post
Tuổi 23-10-2013, 03:15 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
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
  Trả lời ngay kèm theo trích dẫn này