Skip to content

Instantly share code, notes, and snippets.

@yanivk1984
Last active March 29, 2020 07:36
Show Gist options
  • Save yanivk1984/039a50275450cb707c0a915d3c307a43 to your computer and use it in GitHub Desktop.
Save yanivk1984/039a50275450cb707c0a915d3c307a43 to your computer and use it in GitHub Desktop.
# run command
sshpass -p qwe123 ssh -n -o StrictHostKeyChecking=no "admin@$IP" 'fw stat'
# transfer a file
sshpass -p 'qwe123' scp cp.pnp admin@$IP:/opt/CPshrd-R80.30/conf/cp.pnp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment