cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Global Config via remote SSH

Copy Global Config via remote SSH

afskymonkey
New Contributor

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 1

Stephane_Grosj1
Extreme Employee

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.

GTM-P2G8KFN