- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试使用 FTPSClient
连接到 FTP 服务器,虽然身份验证工作正常,但当我尝试发送数据时,出现连接被拒绝错误。
package com.main;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.security.NoSuchAlgorithmException;
import org.apache.commons.net.PrintCommandListener;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPConnectionClosedException;
import org.apache.commons.net.ftp.FTPReply;
import org.apache.commons.net.ftp.FTPSClient;
public final class FTPSExample
{
public static final void main(String[] args) throws NoSuchAlgorithmException
{
int base = 0;
boolean storeFile = true, binaryTransfer = true, error = false;
String server, username, password, remote, local;
String protocol = "SSL"; // SSL/TLS
FTPSClient ftps;
for (base = 0; base < args.length; base++)
{
if (args[base].startsWith("-s"))
storeFile = true;
else if (args[base].startsWith("-b"))
binaryTransfer = true;
else
break;
}
server = "hostname";
username = "username";
password = "pass";
remote = "/";
local = "filepath";
ftps = new FTPSClient(protocol);
ftps.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)));
try
{
int reply;
ftps.connect(server);
System.out.println("Connected to " + server + ".");
// After connection attempt, you should check the reply code to verify
// success.
reply = ftps.getReplyCode();
if (!FTPReply.isPositiveCompletion(reply))
{
ftps.disconnect();
System.err.println("FTP server refused connection.");
System.exit(1);
}
}
catch (IOException e)
{
if (ftps.isConnected())
{
try
{
ftps.disconnect();
}
catch (IOException f)
{
// do nothing
}
}
System.err.println("Could not connect to server.");
e.printStackTrace();
System.exit(1);
}
__main:
try
{
ftps.setBufferSize(1000);
if (!ftps.login(username, password))
{
ftps.logout();
error = true;
break __main;
}
System.out.println("Remote system is " + ftps.getSystemName());
if (binaryTransfer) ftps.setFileType(FTP.BINARY_FILE_TYPE);
ftps.enterLocalPassiveMode();
if (storeFile)
{
InputStream input;
input = new FileInputStream(local);
ftps.storeFile(remote, input);
input.close();
}
else
{
OutputStream output;
output = new FileOutputStream(local);
ftps.retrieveFile(remote, output);
output.close();
}
ftps.logout();
}
catch (FTPConnectionClosedException e)
{
error = true;
System.err.println("Server closed connection.");
e.printStackTrace();
}
catch (IOException e)
{
error = true;
e.printStackTrace();
}
finally
{
if (ftps.isConnected())
{
try
{
ftps.disconnect();
}
catch (IOException f)
{
// do nothing
}
}
}
System.exit(error ? 1 : 0);
} // end main
}
下面还有生成的日志。
220-FTP Server is ready...
220-WARNING!
220-This information system is the property of ABCD
220-Industries. Access to this resource is limited to
220-authorized use only. Therefore, any or all use of
220-this system may be lawfully intercepted, monitored
220-or audited for reasons including system support,
220-detecting unauthorized use, verifying adherance to
220-security controls or investigating security incidents.
220-By using this system, 1) you accept these terms and
220-2) acknowledge your individual responsibility to
220-comply with all applicable information security
220-policies as a condition of your access. Be assured
220-ABCDIndustries will continue to conduct its
220-information technology practices in accordance
220-with all applicable US and international laws
220-(including privacy laws). A copy of ABCD
220-Industries corporate informaton security policy
220-is located on the ABCD intranet or upon request
220 from your Human Resource representative.
AUTH TLS
234 AUTH command OK. Initializing SSL connection.
Connected to hostname.
USER emerald
331 User name okay, need password.
PASS online
230 User logged in, proceed.
SYST
215 UNIX Type: L8
Remote system is UNIX Type: L8
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (xxx,xx,xx,xx,195,80)
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:920)
at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:627)
at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:653)
at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:639)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:2030)
at com.main.FTPSExample.main(FTPSExample.java:126)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
注意:我可以通过端口 21 从 WinSCP 连接到服务器,无需加密。
我尝试使用 FTPClient
对象将数据发送到服务器,我从 storeFile
方法得到 true,但我无法在服务器上找到文件,但与 相同的代码code>FTPClient
正在为其他服务器工作。但是,当我尝试使用 FTPSClient
对象发送数据时,调用 storeFile
方法时会抛出上述错误。
此外,当我尝试通过在服务器上拖放来在服务器上上传文件时,它会被上传,然后自动删除,但不确定为什么会发生这种情况。
GUI 日志。
. 2020-03-31 13:23:21.860 --------------------------------------------------------------------------
. 2020-03-31 13:23:21.861 WinSCP Version 5.15.9 (Build 10071) (OS 10.0.18362 - Windows 10 Enterprise)
. 2020-03-31 13:23:21.861 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2020-03-31 13:23:21.861 Log level: Normal
. 2020-03-31 13:23:21.861 Local account: GLOBAL\Devang.Patel
. 2020-03-31 13:23:21.862 Working directory: C:\Program Files (x86)\WinSCP
. 2020-03-31 13:23:21.862 Process ID: 100180
. 2020-03-31 13:23:21.862 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2020-03-31 13:23:21.863 Time zone: Current: GMT+5:30 (India Standard Time), No DST
. 2020-03-31 13:23:21.863 Login time: Tuesday, March 31, 2020 1:23:21 PM
. 2020-03-31 13:23:21.863 --------------------------------------------------------------------------
. 2020-03-31 13:23:21.863 Session name: USERNAME@hostname (Site)
. 2020-03-31 13:23:21.863 Host name: hostname (Port: 21)
. 2020-03-31 13:23:21.863 User name: USERNAME (Password: No, Key file: No, Passphrase: No)
. 2020-03-31 13:23:21.863 Transfer Protocol: FTP
. 2020-03-31 13:23:21.863 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2020-03-31 13:23:21.863 Disable Nagle: No
. 2020-03-31 13:23:21.863 Proxy: None
. 2020-03-31 13:23:21.863 Send buffer: 262144
. 2020-03-31 13:23:21.863 UTF: Auto
. 2020-03-31 13:23:21.863 FTPS: None [Client certificate: No]
. 2020-03-31 13:23:21.863 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2020-03-31 13:23:21.863 Local directory: C:\Users\devang.patel\Desktop, Remote directory: /, Update: Yes, Cache: Yes
. 2020-03-31 13:23:21.864 Cache directory changes: Yes, Permanent: Yes
. 2020-03-31 13:23:21.864 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2020-03-31 13:23:21.864 Timezone offset: 0h 0m
. 2020-03-31 13:23:21.864 --------------------------------------------------------------------------
. 2020-03-31 13:23:21.935 Connecting to hostname ...
. 2020-03-31 13:23:22.175 Connected with hostname. Waiting for welcome message...
< 2020-03-31 13:23:22.481 220-FTP Server is ready...
< 2020-03-31 13:23:22.481 220-WARNING!
< 2020-03-31 13:23:22.481 220-This information system is the property of ABCD
< 2020-03-31 13:23:22.481 220-Industries. Access to this resource is limited to
< 2020-03-31 13:23:22.481 220-authorized use only. Therefore, any or all use of
< 2020-03-31 13:23:22.481 220-this system may be lawfully intercepted, monitored
< 2020-03-31 13:23:22.481 220-or audited for reasons including system support,
< 2020-03-31 13:23:22.481 220-detecting unauthorized use, verifying adherance to
< 2020-03-31 13:23:22.481 220-security controls or investigating security incidents.
< 2020-03-31 13:23:22.481 220-By using this system, 1) you accept these terms and
< 2020-03-31 13:23:22.482 220-2) acknowledge your individual responsibility to
< 2020-03-31 13:23:22.482 220-comply with all applicable information security
< 2020-03-31 13:23:22.482 220-policies as a condition of your access. Be assured
< 2020-03-31 13:23:22.482 220-ABCD Industries will continue to conduct its
< 2020-03-31 13:23:22.482 220-information technology practices in accordance
< 2020-03-31 13:23:22.482 220-with all applicable US and international laws
< 2020-03-31 13:23:22.482 220-(including privacy laws). A copy of ABCD
< 2020-03-31 13:23:22.482 220-Industries corporate informaton security policy
< 2020-03-31 13:23:22.482 220-is located on the ABCD intranet or upon request
< 2020-03-31 13:23:22.482 220 from your Human Resource representative.
> 2020-03-31 13:23:22.482 USER USERNAME
< 2020-03-31 13:23:22.716 331 User name okay, need password.
> 2020-03-31 13:23:25.742 PASS ******
< 2020-03-31 13:23:25.989 230 User logged in, proceed.
> 2020-03-31 13:23:25.989 SYST
< 2020-03-31 13:23:26.217 215 UNIX Type: L8
> 2020-03-31 13:23:26.217 FEAT
< 2020-03-31 13:23:26.453 211-Extensions supported
< 2020-03-31 13:23:26.453 UTF8
< 2020-03-31 13:23:26.453 OPTS MODE;MLST;UTF8
< 2020-03-31 13:23:26.453 CLNT
< 2020-03-31 13:23:26.453 CSID Name; Version;
< 2020-03-31 13:23:26.453 HOST domain
< 2020-03-31 13:23:26.453 SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP
< 2020-03-31 13:23:26.453 AUTH TLS;SSL;TLS-C;TLS-P;
< 2020-03-31 13:23:26.453 PBSZ
< 2020-03-31 13:23:26.453 PROT
< 2020-03-31 13:23:26.453 CCC
< 2020-03-31 13:23:26.453 SSCN
< 2020-03-31 13:23:26.453 RMDA directoryname
< 2020-03-31 13:23:26.453 DSIZ
< 2020-03-31 13:23:26.453 AVBL
< 2020-03-31 13:23:26.453 EPRT
< 2020-03-31 13:23:26.453 EPSV
< 2020-03-31 13:23:26.453 MODE Z
< 2020-03-31 13:23:26.453 THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname
< 2020-03-31 13:23:26.453 REST STREAM
< 2020-03-31 13:23:26.453 SIZE
< 2020-03-31 13:23:26.453 MDTM
< 2020-03-31 13:23:26.454 MDTM YYYYMMDDHHMMSS[+-TZ];filename
< 2020-03-31 13:23:26.454 MFMT
< 2020-03-31 13:23:26.454 MFCT
< 2020-03-31 13:23:26.454 MFF Create;Modify;
< 2020-03-31 13:23:26.454 XCRC filename;start;end
< 2020-03-31 13:23:26.454 XMD5 filename;start;end
< 2020-03-31 13:23:26.454 XSHA1 filename;start;end
< 2020-03-31 13:23:26.454 XSHA256 filename;start;end
< 2020-03-31 13:23:26.454 XSHA512 filename;start;end
< 2020-03-31 13:23:26.454 COMB target;source_list
< 2020-03-31 13:23:26.454 MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl
< 2020-03-31 13:23:26.454 211 End (for details use "HELP commmand" where command is the command of interest)
> 2020-03-31 13:23:26.454 CLNT WinSCP-release-5.15.9
< 2020-03-31 13:23:26.783 200 Noted.
> 2020-03-31 13:23:26.783 OPTS UTF8 ON
< 2020-03-31 13:23:27.195 200 OPTS UTF8 is set to ON.
. 2020-03-31 13:23:27.223 Connected
. 2020-03-31 13:23:27.223 --------------------------------------------------------------------------
. 2020-03-31 13:23:27.223 Using FTP protocol.
. 2020-03-31 13:23:27.224 Doing startup conversation with host.
> 2020-03-31 13:23:27.252 PWD
< 2020-03-31 13:23:27.482 257 "/" is current directory.
. 2020-03-31 13:23:27.482 Changing directory to "/".
> 2020-03-31 13:23:27.483 CWD /
< 2020-03-31 13:23:27.719 250 Directory changed to /
. 2020-03-31 13:23:27.719 Getting current directory name.
> 2020-03-31 13:23:27.720 PWD
< 2020-03-31 13:23:27.950 257 "/" is current directory.
. 2020-03-31 13:23:27.989 Retrieving directory listing...
> 2020-03-31 13:23:27.989 TYPE A
< 2020-03-31 13:23:28.318 200 Type set to A.
> 2020-03-31 13:23:28.318 PASV
< 2020-03-31 13:23:28.625 227 Entering Passive Mode (xxx,xx,xx,xx,195,80)
> 2020-03-31 13:23:28.625 MLSD
. 2020-03-31 13:23:28.625 Connecting to xxx.xx.xx.xx:50000 ...
< 2020-03-31 13:23:28.934 150 Opening BINARY mode data connection for MLSD.
. 2020-03-31 13:23:29.242 Data connection closed
. 2020-03-31 13:23:29.242 Type=dir;Modify=20200330141036.281; etst
< 2020-03-31 13:23:29.242 226 Transfer complete. 42 bytes transferred. 0.04 KB/sec.
. 2020-03-31 13:23:29.243 Directory listing successful
. 2020-03-31 13:23:29.243 ..;D;0;1899-12-30T05:30:00.000Z;0;"" [0];"" [0];---------;0
. 2020-03-31 13:23:29.243 etst;D;0;2020-03-30T14:10:36.000Z;3;"" [0];"" [0];---------;0
. 2020-03-31 13:23:29.263 Startup conversation with host finished.
. 2020-03-31 13:23:59.933 Sending dummy command to keep session alive.
> 2020-03-31 13:23:59.933 REST 0
< 2020-03-31 13:24:00.434 350 Restarting at 0. Send STORE or RETRIEVE.
. 2020-03-31 13:24:29.937 Sending dummy command to keep session alive.
> 2020-03-31 13:24:29.937 REST 0
< 2020-03-31 13:24:30.435 350 Restarting at 0. Send STORE or RETRIEVE.
. 2020-03-31 13:24:33.701 Copying 1 files/directories to remote directory "/" - total size: 104
. 2020-03-31 13:24:33.701 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2020-03-31 13:24:33.701 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2020-03-31 13:24:33.701 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2020-03-31 13:24:33.702 File: 'C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt' [2020-03-30T07:53:11.476Z] [104]
. 2020-03-31 13:24:33.702 Copying "C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt" to remote directory started.
. 2020-03-31 13:24:33.703 Binary transfer mode selected.
. 2020-03-31 13:24:33.703 Starting upload of C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt
> 2020-03-31 13:24:33.703 TYPE I
< 2020-03-31 13:24:33.963 200 Type set to I.
> 2020-03-31 13:24:33.963 PASV
< 2020-03-31 13:24:34.352 227 Entering Passive Mode (xxx,xx,xx,xx,195,81)
> 2020-03-31 13:24:34.352 STOR testFtpConnectionFile4293902888177791204.txt
. 2020-03-31 13:24:34.352 Connecting to xxx.xx.xx.xx:50001 ...
< 2020-03-31 13:24:34.506 150 Opening BINARY mode data connection for testFtpConnectionFile4293902888177791204.txt.
< 2020-03-31 13:24:34.783 226 Transfer complete. 104 bytes transferred. 6.35 KB/sec.
> 2020-03-31 13:24:34.783 MFMT 20200330075311 testFtpConnectionFile4293902888177791204.txt
< 2020-03-31 13:24:35.091 213 Modify=20200330075311; /testFtpConnectionFile4293902888177791204.txt
. 2020-03-31 13:24:35.091 Upload successful
. 2020-03-31 13:24:35.091 Transfer done: 'C:\Users\devang.patel\Desktop\testFtpConnectionFile4293902888177791204.txt' => '/testFtpConnectionFile4293902888177791204.txt' [104]
. 2020-03-31 13:24:35.099 Copying finished: Transferred: 104, Elapsed: 0:00:01, CPS: 0/s
. 2020-03-31 13:24:35.100 Retrieving directory listing...
> 2020-03-31 13:24:35.100 TYPE A
< 2020-03-31 13:24:35.398 200 Type set to A.
> 2020-03-31 13:24:35.398 PASV
< 2020-03-31 13:24:35.705 227 Entering Passive Mode (xxx,xx,xx,xx,195,82)
> 2020-03-31 13:24:35.705 MLSD
. 2020-03-31 13:24:35.706 Connecting to xxx.xx.xx.xx:50002 ...
< 2020-03-31 13:24:36.022 150 Opening BINARY mode data connection for MLSD.
< 2020-03-31 13:24:36.320 226 Transfer complete. 134 bytes transferred. 0.13 KB/sec.
. 2020-03-31 13:24:36.321 Data connection closed
. 2020-03-31 13:24:36.321 Type=dir;Modify=20200330141036.281; etst
. 2020-03-31 13:24:36.321 Type=file;Size=104;Modify=20200330075311.000; testFtpConnectionFile4293902888177791204.txt
. 2020-03-31 13:24:36.321 Directory listing successful
. 2020-03-31 13:24:36.322 ..;D;0;1899-12-30T05:30:00.000Z;0;"" [0];"" [0];---------;0
. 2020-03-31 13:24:36.322 etst;D;0;2020-03-30T14:10:36.000Z;3;"" [0];"" [0];---------;0
. 2020-03-31 13:24:36.322 testFtpConnectionFile4293902888177791204.txt;-;104;2020-03-30T07:53:11.000Z;3;"" [0];"" [0];---------;0
. 2020-03-31 13:25:06.935 Sending dummy command to keep session alive.
> 2020-03-31 13:25:06.936 TYPE A
< 2020-03-31 13:25:07.437 200 Type set to A.
. 2020-03-31 13:25:36.941 Sending dummy command to keep session alive.
> 2020-03-31 13:25:36.941 TYPE I
< 2020-03-31 13:25:37.441 200 Type set to I.
. 2020-03-31 13:26:06.944 Sending dummy command to keep session alive.
> 2020-03-31 13:26:06.944 PWD
< 2020-03-31 13:26:07.444 257 "/" is current directory.
. 2020-03-31 13:27:08.946 Sending dummy command to keep session alive.
> 2020-03-31 13:27:08.946 REST 0
< 2020-03-31 13:27:09.447 350 Restarting at 0. Send STORE or RETRIEVE.
. 2020-03-31 13:27:29.907 Getting current directory name.
. 2020-03-31 13:27:29.909 Retrieving directory listing...
> 2020-03-31 13:27:29.909 TYPE A
< 2020-03-31 13:27:30.140 200 Type set to A.
> 2020-03-31 13:27:30.140 PASV
< 2020-03-31 13:27:30.413 227 Entering Passive Mode (xxx,xx,xx,xx,195,83)
> 2020-03-31 13:27:30.413 MLSD
. 2020-03-31 13:27:30.413 Connecting to xxx.xx.xx.xx:50003 ...
< 2020-03-31 13:27:30.657 150 Opening BINARY mode data connection for MLSD.
< 2020-03-31 13:27:30.927 226 Transfer complete. 42 bytes transferred. 0.04 KB/sec.
. 2020-03-31 13:27:30.927 Data connection closed
. 2020-03-31 13:27:30.928 Type=dir;Modify=20200330141036.281; etst
. 2020-03-31 13:27:30.928 Directory listing successful
. 2020-03-31 13:27:30.928 ..;D;0;1899-12-30T05:30:00.000Z;0;"" [0];"" [0];---------;0
. 2020-03-31 13:27:30.928 etst;D;0;2020-03-30T14:10:36.000Z;3;"" [0];"" [0];---------;0
. 2020-03-31 13:29:00.953 Sending dummy command to keep session alive.
> 2020-03-31 13:29:00.953 TYPE A
< 2020-03-31 13:29:01.455 200 Type set to A.
最佳答案
这不是您的代码问题。
如您所见,启用加密后,即使使用 GUI FTP 客户端 (WinSCP) 也无法连接。
这表明您有防火墙问题。
请参阅File transfer with vsftpd does not work with TLS, but does work with unencrypted connection
关于java - 无法使用 FTPSClient 通过 FTP 服务器传输数据 - 连接被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60943537/
根据 FTP 协议(protocol)(rfc 959),当 ftp 客户端连接到 ftp 服务器时,应该在 ftp 客户端和 ftp 服务器之间建立控制连接。而当ftp客户端发送{LIST, R
是否可以使用 FTP 命令重命名 FTP 服务器上的文件夹? 我知道有一个用于文件重命名的 Rename 命令,但是我可以将它用于文件夹名称吗? 最佳答案 AFAIK,相同的命令( RNFR/RNTO
我有一个 ftp://host/path URL,我想下载文件并在 Erlang 中连接丢失时继续下载。 使用 ftp 开始下载非常简单模块,但如何恢复它? 最佳答案 是的..就像 Peer 提到的.
我一直在阅读 FTP 规范并使用 Wireshark 来捕获我的 FTP 客户端发送/接收的数据包,并有一些关于它们的问题。 首先是来自我的 FTP 服务器的“连接问候语”(如 FTP RFC 所称)
我有一个 ColdFusion 应用程序,用于在开发和生产服务器之间传输文件。实际发送文件的代码如下: ftp = new Ftp(); ftp.setUsername(username); ftp.
我正在尝试连接到允许匿名访问的 FTP 服务器,但我不知道如何指定执行此操作所需的适当用户名/密码。 我尝试过使用匿名/匿名作为用户/通行证,但没有成功,以及空字符串和两者的各种组合等。 这一定是我所
ftp rstatus $remotefile 在Solaris 上出现“?无效命令”错误。我发现,与 HP-UX 不同,Solaris 10 上没有像 rstatus 这样的 ftp 命令。基本上在
我是 Spring 的新手,我目前正在研究 spring 与 ftp 支持的集成。 我从本地目录传输到服务器 (filZilla)。 我从服务器下载了文件,没问题。 但我想知道如何将文件从 FTP 服
我想通过加密连接 FTP,需要使用 PHP 代码通过 TLS 隐式 FTP。 我已经尝试使用普通 FTP 进行加密,它可以工作,但加密需要通过 TLS 的隐式 FTP 不起作用。 最佳答案 尝试使用下
我已经成功使用 LuaSocket 的 TCP 工具,但我在使用它的 FTP 模块时遇到了问题。尝试检索(小)文件时,我总是超时。我可以在被动模式下使用 Firefox 或 ftp 下载文件(在 Ub
我尝试使用 putty 使用 FTP 详细信息主机名、用户名和密码登录到服务器。但是当我输入密码时它显示拒绝访问。 对于我的另一个网站,我输入了我的主机名并单击在腻子中打开,它显示“网络错误:连接超时
只是我,还是 FTP 看起来有点过时?它看起来很慢而且效率低下,而且它已经有 30 多年的历史了,并不是所有的旧东西都是坏的 :) 有哪些协议(protocol)可能成为 FTP 的继任者? 我用过一
我有一个有点相关但不同的问题 here . 我有一个批处理脚本( *.bat 文件),例如: @ftp -i -s:"%~f0"&GOTO:EOF open ftp.myhost.com myuser
我正在使用 IBM Mainframe TSO 从数据集中查看文件。最近有人告诉我每天开始将最新一代的数据集通过 FTP 传输到我桌面上的文件夹中。问题是我的 FTP 脚本只允许我用我输入的确切名称
我正在尝试使用 atom 包“Remote-FTP”和私钥连接到我的服务器。 我在我的服务器上设置了 SSH key ,并且可以使用腻子成功连接。 私钥保存在我的项目文件夹中,我有一个现有的 .ftp
我的 ftp 文件夹中有一组文件。我只能访问 ftp 模式。我想将那些扩展名为 .txt 的文件重命名为 .done 例如: 1.txt, 2.txt, 3.txt 到 1.done, 2.done,
lcd 更改本地目录。 ls 列出远程目录上的文件。 我想要的是lls,列出本地目录上的文件。 这可能吗? 我知道我总是可以打开另一个终端来执行此操作,但我很懒! 最佳答案 是的: !dir ! 告诉
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 9 年前。 社区去年审查
我的 FTP 测试服务器有问题。我已经安装并配置了 FileZilla 服务器,它正在监听端口 21 上的控制连接,然后它可以在 50100 和 51100 之间的端口上提供被动模式数据连接。 我正在
我正在运行 Filezilla Server 0.9.45 beta 来远程管理我的服务器。设置完成后,我测试使用 IP 127.0.0.1 连接到它,并且工作成功。但是,为了远程连接到服务器,我将端
我是一名优秀的程序员,十分优秀!