Configuration Guide Vol. 1


11.4.4 Secure copy

You can use scp commands to transfer files between the Switch and SSH servers. Unlike ftp, SSH is used for the communication channel, so the username, password, and file are transmitted in encrypted form and are not leaked or tampered with.

The following figure shows an example of transferring a configuration file to a SSH server by connecting to a IPv4 using scp commandof the Switch.

Figure 11-20: Transferring Files from the Device with Secure Copy by Connecting with IPv4
> scp config.txt staff@192.168.1.1:/home/staff/config/                        ..1
staff@192.168.1.1's password: ******                                          ..2
config.txt                                     100% 4062     4.0KB/s   00:00  ..3
>
  1. Connect to SSH Servers 192.168.1.1 as a user staff and transfer the configuration file config.txt saved in the home directory to /home/staff/config/.

  2. Enter staff password. (When connecting to SSH server for the second or subsequent time, the host public key confirmation message is not displayed because the host public key is registered in the client user's host public key database.)

  3. The file is transferred.

The following figure shows an example of transferring a configuration file from a SSH server to the Switch by using scp command. IPv6 is used.

Figure 11-21: Transferring Files to the Switch Using a Secure Copy by Connecting to the Switch with IPv6
> scp staff@[2001:db8::1]:/home/staff/config/config.txt .                     ..1
staff@2001:db8::1's password: ******                                          ..2
config.txt                                     100% 4062     4.0KB/s   00:00  ..3
>
  1. Connects to SSH server 2001:db8::1 as a user staff and transfers the configuration file config.txt under the server's /home/staff/config/ to the current directory on the Switch. Enter IPv6 addressing in square brackets [].

  2. Enter the password for staff.

  3. The file is transferred.