Browse Source

Added function names that will be needed to copy certificate

master
Raphael Roberts 7 years ago
parent
commit
fdb953e2e0
  1. 1
      .gitignore
  2. 23
      copy_cert.py

1
.gitignore

@ -0,0 +1 @@
*~

23
copy_cert.py

@ -1,2 +1,25 @@
#!/usr/bin/python
import argparse
def connection_from_config(name):
"""Create a connection from a Host entry in the .ssh/config file"""
pass
def scp(connection, src, dst):
"""Function to copy files from src to dst using connection"""
pass
def exec_remote(connection, command):
"""Function to execute specified command on conection"""
pass
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('cert_path')
parser.add_argument('key_path')
parser.add_argument('-d', '--dry', action='store_true')
args = parser.parse_args()
Loading…
Cancel
Save