Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got 504 Error when write file into FTPS server #27

Closed
magua33 opened this issue Mar 23, 2018 · 1 comment
Closed

Got 504 Error when write file into FTPS server #27

magua33 opened this issue Mar 23, 2018 · 1 comment

Comments

@magua33
Copy link

magua33 commented Mar 23, 2018

Can't write file into FTPS server(TLS).
I got this error: goftp: 0.483 #1 got 504-Protection level P 1.TXT not recognized.
How can I solve it? :)

@magua33
Copy link
Author

magua33 commented Mar 23, 2018

My config:

	config := goftp.Config{
		User:               "XXXX",
		Password:           "XXXXX",
		ConnectionsPerHost: 10,
		Timeout:            10 * time.Second,
		Logger:             os.Stderr,
		TLSConfig: &tls.Config{
			InsecureSkipVerify: true,
		},
		TLSMode: TLSImplicit,
	}

Message:

goftp: 0.000 #1 opening TLS control connection to XXX.XXX.XXX.XXX:XXXX
goftp: 0.135 #1 sending command USER XXXX
goftp: 0.165 #1 got 331-Password required for XXX
goftp: 0.165 #1 sending command PASS ******
goftp: 0.191 #1 got 230-Logged on
goftp: 0.192 #1 sending command FEAT
goftp: 0.221 #1 got 211-Features:
 MDTM
 REST STREAM
 SIZE
 MLST type*;size*;modify*;
 MLSD
 AUTH SSL
 AUTH TLS
 PROT
 PBSZ
 UTF8
 CLNT
 MFMT
 EPSV
 EPRT
End
goftp: 0.222 #1 was ready
goftp: 0.222 #1 sending command TYPE I
goftp: 0.248 #1 got 200-Type set to I
goftp: 0.248 #1 sending command EPSV
goftp: 0.275 #1 got 229-Entering Extended Passive Mode (|||121|)
goftp: 0.275 #1 opening data connection to [XXX.XXX.XXX.XX]:121
goftp: 0.301 #1 upgrading data connection to TLS
goftp: 0.301 #1 sending command PROT P /TestPolicyimage/JUBAO/readme
goftp: 0.326 #1 got 504-Protection level P /TESTPOLICYIMAGE/JUBAO/README not recognized
goftp: 0.326 #1 was ready
goftp: 0.326 #1 sending command TYPE I
goftp: 0.355 #1 got 200-Type set to I
goftp: 0.355 #1 sending command SIZE 1.txt
goftp: 0.380 #1 got 213-13
goftp: 0.380 #1 was ready
goftp: 0.381 #1 was ready
goftp: 0.381 #1 sending command TYPE I
goftp: 0.406 #1 got 200-Type set to I
goftp: 0.406 #1 sending command EPSV
goftp: 0.432 #1 got 229-Entering Extended Passive Mode (|||121|)
goftp: 0.432 #1 opening data connection to [219.141.242.74]:121
goftp: 0.456 #1 upgrading data connection to TLS
goftp: 0.456 #1 sending command PROT P 1.txt
goftp: 0.483 #1 got 504-Protection level P 1.TXT not recognized

@magua33 magua33 closed this as completed Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant