1. 程式人生 > >ssd sftp傳輸檔案問題出現 failed to open a secure file transfer session

ssd sftp傳輸檔案問題出現 failed to open a secure file transfer session

系統:Centos 5.2 1、使用sshd 連線,sftp上傳檔案出現 failed to open a secure file transfer session錯誤提示 vi /etc/ssh/sshd_config    shift+G跳轉到檔案尾
Subsystem sftp /usr/libexec/sftp-server  #發現這裡的路徑不對 /usr/libexec/目錄下沒有sftp-server檔案,將其修改為正確的sftp-server路徑 Subsystem sftp /usr/libexec/openssh/sftp-server
2、重啟sshd服務 /etc/init.d/sshd restart 3、從新使用sshd連線,在使用sftp上傳檔案,OK問題解決了!