You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
Wondering if there's any way to send a file over SSH.
I'm working with automation of configuration using NETCONF, and need to send over a file with the configuration and subsequently respond to prompts.
More specifically, I need to run the following SSH command: ssh -o StrictHostKeyChecking=no -p $PORT admin@$HOST -s netconf < $CONFIG_FILE
The python pexpect package allows the spawning of a command to be executed. So I could perform the following:
Wondering if there's any way to send a file over SSH.
I'm working with automation of configuration using NETCONF, and need to send over a file with the configuration and subsequently respond to prompts.
More specifically, I need to run the following SSH command:
ssh -o StrictHostKeyChecking=no -p $PORT admin@$HOST -s netconf < $CONFIG_FILE
The python
pexpect
package allows the spawning of a command to be executed. So I could perform the following:What would be an equivalent goexpect way of performing such action?
The text was updated successfully, but these errors were encountered: