Posted on June 12, 2017 1:53 pm
 |  Asked by Sabeer Ahamed
Print Friendly, PDF & Email
Posted by Tamas Plugor
Answered on June 12, 2017 2:33 pm

Hi Sabeer,

If you are on a linux/mac machine the easiest way would be to use secure copy


scp  <filename> username@<IP or hostname>://mnt/flash/

scp  EOS-4.18.2F.swi admin@


If you are on a windows machine, you could use WinSCP, which is a nice free tool you can find online that lets you transfer files from between your devices using scp, sftp,ftp or webdav. The easiest way would be to use SCP, however in order for it to work you have to make sure that the username you are using has privileged access to the switch and enters in ‘enable’ mode by default and when setting up the session, in the advanced option in Environment-SCP/Shell you have to make sure the Shell is bash. By default you’ll see the ‘Default’ keyword or ‘/bin/bash’ and you can just type ‘bash’ and click ok and Login. After this you can choose the file you need to upload to the switch from the left side of the commander window and you can simply use the drag and drop feature and drop it to the switch on the right side.

Alternatively, you could do the copy from the switch’s CLI or bash shell from your machine to the switch e.g.

From the CLI

copy via FTP:

#copy ftp:/user:password@ flash:/EOS-4.18.2F.swi

copy via SCP

#copy scp://user:password@ flash:/EOS-4.18.2F.swi

copy via HTTP

#copy flash:/EOS-4.18.2F.swi


From bash mode it would be similar to my first example.



Hope this helps.



Posted by prabhu dayalan
Answered on July 1, 2021 3:21 pm

Hi , I am trying arista (DCS-7050S-64-F) switch to switch (DCS-7050S-64-F) firmware copy with command below

" copy scp://admin:LADarepa$$@ flash:/EOS-4.14.7M.swi "

after the command executed it turns into password

password: xxxxxxxx

then the final result is comes below

(The 'scp' command is only available in privileged mode.)


Note: using privileged mode and AAA local is enabled already ..


Can any one help this case ?

Posted by Cosmin
Answered on July 1, 2021 4:32 pm

Hi Prabhu

Because the command is accepted, we can conclude you are in the privileged mode. Most likely the username (admin) that you are using to connect via scp doesn't have privileged mode access on

Take care

Posted by Naveen Chandra
Answered on July 1, 2021 4:40 pm

Hi Prabhu,

You can use the below command to transfer the file from one switch to another switch:

1- Login to the switch where you have the EOS file.

2- Run the command "dir" to confirm that you have the file "EOS-4.14.7M.swi" in the /mnt/flash of the switch.

3- run the below command to transfer the EOS file to the /mnt/flash of the destination switch ""


#bash sudo scp /mnt/flash/EOS-4.14.7M.swi admin@


Posted by Gerry
Answered on July 2, 2021 4:18 pm

Hi Prabhu,

(The 'scp' command is only available in privileged mode.),

This means the login username(admin) does not have permission to access bash shell from remotely(scp session),

You need to add "aaa authorization exec default local" command on scp destination switch(x.x.x.x) to allow remote scp session to access shell.

Arista(config)#aaa authorization ?

  commands         Configure authorization for shell commands

  config-commands  Enable authorization for configuration commands

  exec             Configure authorization for starting a shell

  policy           Set authorization policy

  serial-console   Enable console authorization





Posted by obioma okoroafor
Answered on August 20, 2021 7:47 am


Using my PC as my ftp server, I would like to backup the EOS image and other configuration files in my Arista 7050S.

Any help with the procedure will be appreciated.


Thank you.

Posted by obioma okoroafor
Answered on August 26, 2021 1:59 am

Hello @Prabhu Dayalan,

If it is of no trouble to you, please respond to my question above.

It is about the procedure for backing up EOS using my PC as FTP server.

Thank you.

Post your Answer

You must be logged in to post an answer.