Ftp
Winscp - 嘗試登錄到遠端網站並且無法打開數據連接
我正在使用 WinScp 訪問遠端 ftp 伺服器。我無法在筆記型電腦上連接,出現以下消息
Can't open data connection
。然而,當我的同事在她的機器上連接時,她可以連接到遠端 ftp 站點我列出了解決方案,我試過了
- 設置為被動模式:無效
- 設置為活動模式:無效
- 使用另一個 ftp 客戶端(此處為 Filezilla):沒用
- 為伺服器打開遠端防火牆上的埠範圍(包含
39000
到41000
):沒有工作- 基於共享驅動器設置一個 bat 文件,並通過 ftp 訪問我想要 ftp 的伺服器:沒有工作
另請查找日誌的詳細摘錄
2016-10-25 16:16:11.100 Session upkeep . 2016-10-25 16:16:11.103 Session upkeep . 2016-10-25 16:16:11.602 Session upkeep . 2016-10-25 16:16:12.124 Session upkeep . 2016-10-25 16:16:12.615 Session upkeep . 2016-10-25 16:16:13.129 Session upkeep . 2016-10-25 16:16:13.628 Session upkeep . 2016-10-25 16:16:14.143 Session upkeep . 2016-10-25 16:16:14.644 Session upkeep . 2016-10-25 16:16:15.157 Session upkeep . 2016-10-25 16:16:15.657 Session upkeep . 2016-10-25 16:16:16.171 Session upkeep . 2016-10-25 16:16:16.682 Session upkeep . 2016-10-25 16:16:17.185 Session upkeep . 2016-10-25 16:16:17.686 Session upkeep . 2016-10-25 16:16:18.199 Session upkeep . 2016-10-25 16:16:18.699 Session upkeep . 2016-10-25 16:16:19.214 Session upkeep . 2016-10-25 16:16:19.714 Session upkeep . 2016-10-25 16:16:20.228 Session upkeep . 2016-10-25 16:16:20.728 Session upkeep . 2016-10-25 16:16:21.242 Session upkeep . 2016-10-25 16:16:21.742 Session upkeep . 2016-10-25 16:16:22.256 Session upkeep . 2016-10-25 16:16:22.770 Session upkeep . 2016-10-25 16:16:23.271 Session upkeep . 2016-10-25 16:16:23.784 Session upkeep . 2016-10-25 16:16:24.284 Session upkeep . 2016-10-25 16:16:24.798 Session upkeep . 2016-10-25 16:16:25.297 Session upkeep . 2016-10-25 16:16:25.812 Session upkeep . 2016-10-25 16:16:26.312 Session upkeep . 2016-10-25 16:16:26.312 Sending dummy command to keep session alive. > 2016-10-25 16:16:26.312 REST 0 < 2016-10-25 16:16:26.312 350 Rest supported. Restarting at 0 . 2016-10-25 16:16:26.312 Dummy directory read to keep session alive. . 2016-10-25 16:16:26.312 Listage du répertoire en cours... > 2016-10-25 16:16:26.312 TYPE A < 2016-10-25 16:16:26.362 200 Type set to A > 2016-10-25 16:16:26.363 PASV < 2016-10-25 16:16:26.411 227 Entering Passive Mode (2x,92,x,143,159,76) > 2016-10-25 16:16:26.411 MLSD . 2016-10-25 16:16:26.412 Connexion à 2x.92.x.143:40780... < 2016-10-25 16:16:36.795 425 Can't open data connection. . 2016-10-25 16:16:36.795 Listage du répertoire impossible . 2016-10-25 16:16:36.795 Got reply 4 to the command 2 . 2016-10-25 16:16:36.912 Session upkeep . 2016-10-25 16:16:36.967 Session upkeep . 2016-10-25 16:16:37.471 Session upkeep . 2016-10-25 16:16:37.981 Session upkeep . 2016-10-25 16:16:38.136 Session upkeep . 2016-10-25 16:16:38.481 Session upkeep . 2016-10-25 16:16:38.995 Session upkeep . 2016-10-25 16:16:39.497 Session upkeep . 2016-10-25 16:16:40.010 Session upkeep . 2016-10-25 16:16:40.514 Session upkeep . 2016-10-25 16:16:41.023 Session upkeep . 2016-10-25 16:16:41.523 Session upkeep . 2016-10-25 16:16:42.037 Session upkeep . 2016-10-25 16:16:42.537 Session upkeep . 2016-10-25 16:16:43.054 Session upkeep . 2016-10-25 16:16:43.551 Session upkeep . 2016-10-25 16:16:44.065 Session upkeep . 2016-10-25 16:16:44.565 Session upkeep . 2016-10-25 16:16:45.079 Session upkeep . 2016-10-25 16:16:45.578 Session upkeep . 2016-10-25 16:16:46.093 Session upkeep . 2016-10-25 16:16:46.598 Session upkeep . 2016-10-25 16:16:47.107 Session upkeep . 2016-10-25 16:16:47.607 Session upkeep . 2016-10-25 16:16:48.121 Session upkeep . 2016-10-25 16:16:48.674 Session upkeep . 2016-10-25 16:16:49.135 Session upkeep . 2016-10-25 16:16:49.638 Session upkeep . 2016-10-25 16:16:50.150 Session upkeep . 2016-10-25 16:16:50.649 Session upkeep . 2016-10-25 16:16:51.164 Session upkeep . 2016-10-25 16:16:51.312 -------------------------------------------------------------------------- . 2016-10-25 16:16:51.313 WinSCP Version 5.9.2 (Compilation 6958) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional) . 2016-10-25 16:16:51.313 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\ . 2016-10-25 16:16:51.313 Log level: Debug 2 . 2016-10-25 16:16:51.313 Local account: xxx . 2016-10-25 16:16:51.313 Working directory: C:\Program Files (x86)\WinSCP . 2016-10-25 16:16:51.313 Process ID: 7428 . 2016-10-25 16:16:51.317 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" . 2016-10-25 16:16:51.317 Time zone: Current: GMT+2, Standard: GMT+1 (Paris, Madrid), DST: GMT+2 (Paris, Madrid (heure d’été)), DST Start: 27/03/2016, DST End: 30/10/2016 . 2016-10-25 16:16:51.318 Login time: mardi 25 octobre 2016 16:16:51 . 2016-10-25 16:16:51.318 -------------------------------------------------------------------------- . 2016-10-25 16:16:51.319 Session name: zZz . 2016-10-25 16:16:51.319 Host name: 2x.92.46.143 (Port: 21) . 2016-10-25 16:16:51.319 User name: GERMANY (Password: Yes, Key file: No) . 2016-10-25 16:16:51.319 Transfer Protocol: FTP . 2016-10-25 16:16:51.319 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec . 2016-10-25 16:16:51.319 Disable Nagle: No . 2016-10-25 16:16:51.319 Proxy: None . 2016-10-25 16:16:51.319 Send buffer: 262144 . 2016-10-25 16:16:51.319 UTF: Auto . 2016-10-25 16:16:51.319 FTPS: Explicit TLS/SSL [Client certificate: No] . 2016-10-25 16:16:51.319 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto . 2016-10-25 16:16:51.319 Session reuse: Yes . 2016-10-25 16:16:51.319 TLS/SSL versions: TLSv1.0-TLSv1.2 . 2016-10-25 16:16:51.319 Local directory: C:\Users\xxx\Documents, Remote directory: /, Update: Yes, Cache: No . 2016-10-25 16:16:51.319 Cache directory changes: No, Permanent: Yes . 2016-10-25 16:16:51.319 Recycle bin: Delete to: No, Overwritten to: No, Bin path: . 2016-10-25 16:16:51.321 Timezone offset: 0h 0m . 2016-10-25 16:16:51.321 -------------------------------------------------------------------------- . 2016-10-25 16:16:51.324 Session upkeep . 2016-10-25 16:16:51.385 Connexion à 2x.92.x.143... . 2016-10-25 16:16:51.386 TLS layer changed state from unconnected to connecting . 2016-10-25 16:16:51.386 TLS layer changed state from connecting to connected . 2016-10-25 16:16:51.386 Connecté à 2x.92.x.143, négociation de la connexion SSL... < 2016-10-25 16:16:51.422 220-FileZilla Server version 0.9.41 beta < 2016-10-25 16:16:51.669 220-written by Tim Kosse (Tim.Kosse@gmx.de) < 2016-10-25 16:16:51.669 220 Please visit http://sourceforge.net/projects/filezilla/ > 2016-10-25 16:16:51.669 AUTH TLS . 2016-10-25 16:16:51.695 Session upkeep < 2016-10-25 16:16:51.717 234 Using authentication type TLS . 2016-10-25 16:16:51.768 TLS connect: SSLv3 read server hello A . 2016-10-25 16:16:51.768 TLS connect: SSLv3 read server certificate A . 2016-10-25 16:16:51.768 TLS connect: SSLv3 read server done A . 2016-10-25 16:16:51.771 TLS connect: SSLv3 write client key exchange A . 2016-10-25 16:16:51.771 TLS connect: SSLv3 write change cipher spec A . 2016-10-25 16:16:51.771 TLS connect: SSLv3 write finished A . 2016-10-25 16:16:51.771 TLS connect: SSLv3 flush data . 2016-10-25 16:16:51.824 TLS connect: SSLv3 read server session ticket A . 2016-10-25 16:16:51.824 TLS connect: SSLv3 read finished A . 2016-10-25 16:16:51.825 Verifying certificate for "xxx GERMANY" with fingerprint xcr and 18 failures . 2016-10-25 16:16:51.825 Certificate for "xxx GERMANY" matches cached fingerprint and failures . 2016-10-25 16:16:51.826 Using TLSv1, cipher TLSv1/SSLv3: AES256-SHA, 1024 bit RSA, AES256-SHA SSLv3 Kx=RSA Au=RSA Enc=AES(256) Mac=SHA1 . 2016-10-25 16:16:51.826 Session upkeep . 2016-10-25 16:16:51.854 Connexion SSL établie. En attente du message de bienvenue... > 2016-10-25 16:16:51.854 USER GERMANY < 2016-10-25 16:16:51.874 331 Password required for germany > 2016-10-25 16:16:51.874 PASS ******** < 2016-10-25 16:16:51.922 230 Logged on > 2016-10-25 16:16:51.922 SYST < 2016-10-25 16:16:51.970 215 UNIX emulated by FileZilla > 2016-10-25 16:16:51.970 FEAT < 2016-10-25 16:16:52.020 211-Features: < 2016-10-25 16:16:52.020 MDTM < 2016-10-25 16:16:52.020 REST STREAM < 2016-10-25 16:16:52.020 SIZE < 2016-10-25 16:16:52.020 MLST type*;size*;modify*; < 2016-10-25 16:16:52.020 MLSD < 2016-10-25 16:16:52.021 AUTH SSL < 2016-10-25 16:16:52.021 AUTH TLS < 2016-10-25 16:16:52.021 PROT < 2016-10-25 16:16:52.021 PBSZ < 2016-10-25 16:16:52.031 UTF8 < 2016-10-25 16:16:52.031 CLNT < 2016-10-25 16:16:52.031 MFMT < 2016-10-25 16:16:52.031 211 End > 2016-10-25 16:16:52.031 CLNT WinSCP-release-5.9.2 < 2016-10-25 16:16:52.069 200 Don't care > 2016-10-25 16:16:52.070 OPTS UTF8 ON < 2016-10-25 16:16:52.118 200 UTF8 mode enabled > 2016-10-25 16:16:52.118 PBSZ 0 < 2016-10-25 16:16:52.165 200 PBSZ=0 > 2016-10-25 16:16:52.165 PROT P . 2016-10-25 16:16:52.205 Session upkeep < 2016-10-25 16:16:52.213 200 Protection level set to P . 2016-10-25 16:16:52.213 Session upkeep . 2016-10-25 16:16:52.263 Connecté . 2016-10-25 16:16:52.263 Got reply 1 to the command 1 . 2016-10-25 16:16:52.263 -------------------------------------------------------------------------- . 2016-10-25 16:16:52.263 Using FTP protocol. . 2016-10-25 16:16:52.263 Doing startup conversation with host. > 2016-10-25 16:16:52.321 PWD < 2016-10-25 16:16:52.369 257 "/" is current directory. . 2016-10-25 16:16:52.369 Got reply 1 to the command 16 . 2016-10-25 16:16:52.369 Changing directory to "/". > 2016-10-25 16:16:52.369 CWD / < 2016-10-25 16:16:52.417 250 CWD successful. "/" is current directory. . 2016-10-25 16:16:52.417 Got reply 1 to the command 16 . 2016-10-25 16:16:52.417 Getting current directory name. > 2016-10-25 16:16:52.418 PWD < 2016-10-25 16:16:52.466 257 "/" is current directory. . 2016-10-25 16:16:52.466 Got reply 1 to the command 16 . 2016-10-25 16:16:52.580 Listage du répertoire en cours... > 2016-10-25 16:16:52.580 TYPE A < 2016-10-25 16:16:52.628 200 Type set to A > 2016-10-25 16:16:52.628 PASV < 2016-10-25 16:16:52.678 227 Entering Passive Mode (2x,92,x,143,159,77) > 2016-10-25 16:16:52.678 MLSD . 2016-10-25 16:16:52.678 Connexion à 2x.92.x.143:40781... . 2016-10-25 16:16:52.680 Session upkeep . 2016-10-25 16:16:53.231 Session upkeep . 2016-10-25 16:16:53.731 Session upkeep . 2016-10-25 16:16:54.231 Session upkeep . 2016-10-25 16:16:54.732 Session upkeep . 2016-10-25 16:16:55.232 Session upkeep . 2016-10-25 16:16:55.735 Session upkeep . 2016-10-25 16:16:56.285 Session upkeep . 2016-10-25 16:16:56.785 Session upkeep . 2016-10-25 16:16:56.785 Sending dummy command to keep session alive. > 2016-10-25 16:16:56.785 PWD < 2016-10-25 16:16:56.785 257 "/" is current directory. . 2016-10-25 16:16:57.286 Session upkeep . 2016-10-25 16:16:57.786 Session upkeep . 2016-10-25 16:16:58.287 Session upkeep . 2016-10-25 16:16:58.813 Session upkeep . 2016-10-25 16:16:59.315 Session upkeep . 2016-10-25 16:16:59.815 Session upkeep . 2016-10-25 16:17:00.315 Session upkeep
不知道該怎麼想。
任何提示或提示都非常受歡迎,因為我已經為此苦苦掙扎了兩天。
由於您使用的是 winscp 而不是
scp
,因此我假設您是 Windows。安裝“Git Bash”是獲取 bash 和 git 的簡單方法,但它還包括一些其他方便的實用程序,包括 ssh 和 scp。我會嘗試幫助他們縮小您的問題範圍。抱歉,我想不出更直接的解決方案或診斷測試。
這是一個很長的鏡頭,但在這裡。
- 你同事電腦的IP地址是多少?
- 她的 IP 範圍是否與您不同?
- 遠端電腦上是否有防火牆規則允許您的同事連接,但不允許您的電腦連接?
可能的解決方案:
- 試試你同事電腦的 IP 地址。
- 嘗試使用與同事電腦相同 IP 範圍的 IP。
- 要求伺服器團隊/客戶將您電腦的 IP 包含在他們的防火牆規則中。
獎勵解決方案:
如果使用的 Windows 帳戶是一個簡單的使用者帳戶,我個人遇到過 Windows 7 家庭版無法連接到 FTP 伺服器的情況。在 Windows 7 Home Edition 上使用管理帳戶登錄解決了該問題。這可能是您的客戶的解決方案,即使您可能使用的是專業版:使用特權/管理帳戶登錄並嘗試再次連接到 FTP 伺服器。(可以通過以管理員身份啟動 WinSCP 來工作)。