ssh#

ssh2awsec2.cli.ssh.get_ec2_inst_choice(ec2_inst: Ec2Instance) str[source]#

Create the choice string for an EC2 instance.

ssh2awsec2.cli.ssh.get_ssh_cmd(path_pem_file: Path, username: str, public_ip: str) List[str][source]#

Construct the ssh to ec2 command.

ssh2awsec2.cli.ssh.ssh(name: Optional[str] = None, id: Optional[str] = None, kv: Optional[str] = None, exact: bool = False, strip: bool = True)[source]#

SSH to an EC2 instance.

Parameters:
  • name

  • id

  • kv

  • exact

  • strip

Returns: