dos匿名登录ftp

通常登录ftp的办法,大部分情况下我们还是使用客户端工具来解决登录,但这个界面化的工具看起来更舒坦,更人性化。下面简单谈谈dos命令行下登录ftp来获取或者上传我们需要的信息...
匿名登录ftp:(Windows) cmd-->ftp -A host(host address)
如果是正常登录的话我们需要使用用户名和密码才能登录主机:ftp host (回车),接下来在命令行中会提示我们输入用户名和密码。
一切准备就绪以后就可以开始上传和下载远端服务器信息了:get(下载远端服务器信息到本地),put(把本地文件放到远端服务器,前提是远端服务器必须要有写的权限)

ftp 命令详解:
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]

  -v             Suppresses display of remote server responses.
  -n             Suppresses auto-login upon initial connection.
  -i             Turns off interactive prompting during multiple file
                 transfers.
  -d             Enables debugging.
  -g             Disables filename globbing (see GLOB command).
  -s:filename    Specifies a text file containing FTP commands; the
                 commands will automatically run after FTP starts.
  -a             Use any local interface when binding data connection.
  -A             login as anonymous.
  -w:buffersize  Overrides the default transfer buffer size of 4096.
  host           Specifies the host name or IP address of the remote
                 host to connect to.

猜你喜欢

转载自sunwch.iteye.com/blog/702649