iT邦幫忙

0

小弟寫了一個上傳檔案到FTP的程式,於本機使用皆正常,但放置到server則無法使用

  • 分享至 

  • twitterImage

出現之主要錯誤碼為
System.Net.WebException:遠端伺服器傳回一個錯誤: (522) 522 SSL connection failed;session reuse required: see require_ssl_reuse option in vsftpd.conf man page’.
搜尋過但貌似沒有出現符合狀況的訊息
想請問有人有遇過該情況
或了解如何處理嗎?
server版本為
WINDOWS 2012R2

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
0

一般這樣的錯誤,有很多種情況。

由於不清楚你用何種協議。我只能給你可能需要查看及注意的地方

1.對應的port是否有打開。可以先試著暫時將防火關掉試試能否正常來確定一下
2.對應的証書放的位置及取得是否正常。如果非証書式的情況。則需要了解ssl之類的模組,是否有安裝。
3.是否有安裝或設定對應的連結協議。基本這個問題在windows server很常沒注意到。

其它的可能性我就比較猜不到。畢竟我很少用windows server。
是否有其它的可能性如權限的問題我就沒辦法給你很好的答案了。

a500197 iT邦新手 5 級 ‧ 2020-09-02 15:34:30 檢舉

感謝大大的回答
有些問題想再請教一下
1.協議是指TLS那個嗎?
2.如何判斷是否為證書式呢?

0
richardsuma
iT邦大師 1 級 ‧ 2020-09-02 17:43:50
看更多先前的回應...收起先前的回應...
a500197 iT邦新手 5 級 ‧ 2020-09-03 09:30:57 檢舉

感謝大大經驗分享
但剛檢查了一下server上並沒有安裝該更新

再試一下這個:
https://support.plesk.com/hc/en-us/articles/213366969-Unable-to-create-backup-on-FTP-or-scheduled-backup-rotation-does-not-work-Unable-to-operate-the-storage-Transport-error-unable-to-delete-file

Resolution
Until the fix will be available the following workaround is applicable:

Connect to the remote FTP server using SSH.
Add the following line into /etc/vsftpd/vsftpd.conf
require_ssl_reuse=NO

Restart vsftpd service:
service vsftpd restart

a500197 iT邦新手 5 級 ‧ 2020-09-03 16:54:08 檢舉

這個方式似乎需要對FTP主機做設定是嗎?

a500197 iT邦新手 5 級 ‧ 2020-09-04 09:20:02 檢舉

server端不是可控的
要動到sever的話無法實現SOR

0
Miels1122
iT邦新手 5 級 ‧ 2020-09-04 14:22:06

看訊息因該是因為 SSL 連接的問題產生的。
有試過先使用 Port 21 的方式進行沒有 SSL 的連結方式嘛?
照理來說...想要採用 SSL 的連接方式..需要有憑證...
您有嘛?

我要發表回答

立即登入回答