Using SFTP and SCP to transfer the custom configuration

To transfer the default custom configuration file to or from the switch, you must connect to the switch’s SSH server using any SCP or SFTP client. Instead of the actual name of the custom default configuration file, an alias name of "default-config" is displayed in the file listings and for get/store functions.

NOTE:

When you use an SCP client to connect to the switch, you must know the name of the file you wish to get or store. When you use SFTP client to connect to the switch, you are provided with a list of filenames which are accessed by the switch.

While the switch supports an SSH server with SCP and/or SFTP running on it, the switch is not an SCP or SFTP client. You must have an SCP/SFTP client implemented in order to execute copy scp or copy sftp commands on the switch.
The following example shows the output from running puTTY psftp on a remote PC.
C:\PuTTY> psftp 10.1.243.209


We'd like to keep you up to date about:
  * Software feature updates
  * New product announcements
  * Special events

Please register your product at: www.register.hpe.com

Remote working directory is /
psftp> ls
Listing directory /
drwxr-xr-x    2 J9145A   J9145A   0 Jan 01 00:01 cfg
drwxr-xr-x    2 J9145A   J9145A   0 Jan 01 00:01 core
drwxr-xr-x    2 J9145A   J9145A   0 Jan 01 00:01 log
drwxrwxrwx    2 J9145A   J9145A   0 Jan 01 00:01 os 
drwxrwxrwx    3 J9145A   J9145A   0 Jan 01 00:01 ssh

psftp> ls /cfg
Listing directory /cfg

-rwxrw-r--  1 J9145A  J9145A  1749 Jan 01 00:01 default-config 
-rw-r--r--  1 J9145A  J9145A   745 Jan 01 01:19 running-config
-rwxrw-r--  1 J9145A  J9145A   360 Jan 01 01:19 startup-config

psftp>