in ccmlib/remote.py [0:0]
def __init__(self):
"""
Create the parser for the remote CCM operations allowed
"""
self.parser = argparse.ArgumentParser(description="Remote",
add_help=False)
# Add the SSH arguments for the remote parser
self.parser.add_argument(
"--ssh-host",
default=None,
type=str,
help="Hostname or IP address to use for SSH connection"
)
self.parser.add_argument(
"--ssh-port",
default=22,
type=self.port,
help="Port to use for SSH connection"
)
self.parser.add_argument(
"--ssh-username",
default=None,
type=str,
help="Username to use for username/password or public key authentication"
)
self.parser.add_argument(
"--ssh-password",
default=None,
type=str,
help="Password to use for username/password or private key passphrase using public "
"key authentication"
)
self.parser.add_argument(
"--ssh-private-key",
default=None,
type=self.ssh_key,
help="Private key to use for SSH connection"
)