Skip to content

Instantly share code, notes, and snippets.

@serverok
Created April 6, 2018 08:30
Show Gist options
  • Save serverok/cb2f2d99e50550dbb9a201bfb8947979 to your computer and use it in GitHub Desktop.
Save serverok/cb2f2d99e50550dbb9a201bfb8947979 to your computer and use it in GitHub Desktop.
[root@server12 ~]# curl --ftp-create-dirs -v -P - -u backup 'ftp://82.16.34.92///test-dir/'
Enter host password for user 'backup':
* About to connect() to 82.16.34.92 port 21 (#0)
* Trying 82.16.34.92... connected
* Connected to 82.16.34.92 (82.16.34.92) port 21 (#0)
< 220 (vsFTPd 3.0.2)
> USER backup
< 331 Please specify the password.
> PASS N0rth3dgE!
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
> CWD /test-dir
< 550 Failed to change directory.
> MKD /test-dir
< 257 "/test-dir" created
> CWD /test-dir
< 250 Directory successfully changed.
> EPRT |1|188.40.131.92|46063|
< 200 EPRT command successful. Consider using EPSV.
* Connect data stream actively
> TYPE A
< 200 Switching to ASCII mode.
> LIST
< 150 Here comes the directory listing.
* Connection accepted from server
* Maxdownload = -1
* Remembering we are in dir "//test-dir/"
< 226 Directory send OK.
* Connection #0 to host 82.16.34.92 left intact
> QUIT
< 221 Goodbye.
* Closing connection #0
[root@server12 ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment