Header Only - DO NOT REMOVE - Extreme Networks
Question

Copy Global Config via remote SSH

  • 31 January 2020
  • 1 reply
  • 937 views

I am trying to copy the global-running-config of our VDX from a remote host linux host. I use the below command I am executing from a remote Linux host:

sshpass -p 'password' ssh -o StrictHostKeyChecking=no user@x.x.x.x 'copy global-running-config sftp://user:password@x.x.x.x/global-running-config use-vrf mgmt-vrf'

In the console I can see the SSH session established and a successful login, however the remote command is not being executed.

Any suggestions?

 


1 reply

Userlevel 7

Hi,

I think you’d need a script that would be able to handle prompt and output. Typically, with Python, pexpect is such a tool.

Life would be easier with XMC.

 

Cheers.

Reply