如何一步一步登录到ftp?

汤米
C:\adc_ftp>ftp sysadmin:ftp@localhost <----Looking for a 1 line login like this
Unknown host sysadmin:ftp@localhost. <---doesn't work
ftp> bye

这有效,但不适用于我要登录的方式:

C:\adc_ftp>ftp localhost 
Connected to myPC.xxx.com.
220-FTP server
    WarFTPd 1.82.00-RC11 (Sep 22 2006) Ready
    (C)opyright 1996 - 2006 by Jarle (jgaa) Aase - all rights reserved.
220 Please enter your user name.
User (myPC.xxx.com:(none)): sysadmin
331 User name okay, need password.
Password:
230 User sysadmin logged in from host localhost (127.0.0.1)
ftp>

我正在尝试制作一个登录到ftp服务器的批处理文件。我试着像例子这一个,但它并不需要登录信息,只是坐在了“请输入您的用户名”。

沉重的

您提到示例中,请确保使用-n标志禁用自动登录

C:\adc_ftp>ftp -n -s:ftp_script.txt localhost

其中ftp_script.txt包含以下内容:

user
ftp
ftppassword
Some ftp commands...
quit 

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章