Accessing the server

In emergency shell mode, the device can perform the following tasks:

Before you use the device to access an FTP or TFTP server, you can log in to the server through Telnet or SSH to, for example, enable the FTP or TFTP server function and configure relevant parameters as required.

To access an FTP or TFTP server from the device, make sure the FTP or TFTP server is configured correctly. To configure the device as the FTP or TFTP server:

  1. Log in to the server through Telnet or SSH.

  2. Enable the FTP or TFTP server function.

  3. Configure relevant parameters as required.

If you cannot log in to an SSH server from the device because the server has changed its public key, perform the following tasks:

  1. Use the reset ssh public-key command to delete all locally saved server public keys.

  2. Log in to the SSH server from the device again.

To access a remote IPv4 server, execute the following commands as appropriate in user view:

Task

Command

Telnet to an IPv4 server.

telnet server-ipv4-address

Use SSH to connect to an IPv4 server.

ssh2 server-ipv4-address

Use FTP to download a file from or upload a file to an IPv4 server.

ftp server-ipv4-address user username password password { get remote-file local-file | put local-file remote-file }

Use TFTP to download a file from or upload a file to an IPv4 server.

tftp server-ipv4-address { get remote-file local-file | put local-file remote-file }

To access a remote IPv6 server, execute the following commands as appropriate in user view:

Task

Command

Telnet to an IPv6 server.

telnet ipv6 server-ipv6-address

Use SSH to connect to an IPv6 server.

ssh2 ipv6 server-ipv6-address

Use FTP to download a file from or upload a file to an IPv6 server.

ftp ipv6 server-ipv6-address user username password password { get remote-file local-file | put local-file remote-file }

Use TFTP to download a file from or upload a file to an IPv6 server.

tftp ipv6 server-ipv6-address { get remote-file local-file | put local-file remote-file }