系统管理指南:网络服务

Procedure如何打开与远程系统的 ftp 连接

  1. 确保您具有 ftp 验证。

    您必须具有 ftp 验证,如远程登录验证 (ftp) 中所述。

  2. 使用 ftp 命令打开与远程系统的连接。


    $ ftp remote-system
    

    如果连接成功,则会显示确认消息和提示。

  3. 键入用户名。


    Name (remote-system:user-name): user-name
    
  4. 如有提示,请键入口令。


    331 Password required for user-name:
    
    Password: password
    

    如果要访问的系统已建立了匿名 ftp 帐户,将会提示您输入电子邮件地址作为口令。如果 ftp 接口接受您的口令,则它会显示确认消息和 (ftp>) 提示符。

    您现在可使用 ftp 接口提供的任何命令,包括 help。表 29–3 概述了主要命令。


示例 29–5 打开与远程系统的 ftp 连接

ftp 会话由远程系统 pluto 中的用户 smith 建立:


$ ftp pluto

Connected to pluto.

220 pluto FTP server ready.

Name (pluto:smith): smith

331 Password required for smith:

Password: password

230 User smith logged in.

ftp>