Accessing the server
In emergency shell mode, the device can perform the following tasks:
Operate as an FTP or TFTP client to download software packages from an FTP or TFTP server.
Operate as an FTP or TFTP client to upload software packages to an FTP or TFTP server.
Operate as a Telnet or SSH client so you can log in to a server to, for example, view and manage files on the server.
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:
Log in to the server through Telnet or SSH.
Enable the FTP or TFTP server function.
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:
Use the reset ssh public-key command to delete all locally saved server public keys.
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 } |