aws-ssh-utils 0.2.5__tar.gz → 0.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/PKG-INFO +8 -8
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/README.md +114 -114
- aws_ssh_utils-0.2.6/aws_ssh_utils/__init__.py +1 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/pyproject.toml +1 -0
- aws_ssh_utils-0.2.5/aws_ssh_utils/__init__.py +0 -1
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/.gitignore +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/LICENSE +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/cli_utils.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/commands/__init__.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/commands/app.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/commands/ec2.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/commands/emr.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/commands/emr_all.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/commands/healthcheck.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/connection.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/ec2_utils.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/emr_utils.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/py.typed +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/ssh.py +0 -0
- {aws_ssh_utils-0.2.5 → aws_ssh_utils-0.2.6}/aws_ssh_utils/terminal.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: aws-ssh-utils
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: Easy AWS SSHing
|
|
5
5
|
Project-URL: Homepage, https://github.com/mvanderlee/aws-ssh-utils
|
|
6
6
|
Author-email: Michiel Vanderlee <jmt.vanderlee@gmail.com>
|
|
@@ -41,15 +41,15 @@ Description-Content-Type: text/markdown
|
|
|
41
41
|
[](https://pypi.org/project/aws-ssh-utils/)
|
|
42
42
|
|
|
43
43
|
```shell
|
|
44
|
-
|
|
44
|
+
uvx aws-ssh-utils
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
uvx aws-ssh-utils app # optional - `app` is default.
|
|
47
|
+
uvx aws-ssh-utils ec2
|
|
48
|
+
uvx aws-ssh-utils emr
|
|
49
|
+
uvx aws-ssh-utils emr-all
|
|
47
50
|
|
|
48
|
-
aws_ssh
|
|
49
|
-
|
|
50
|
-
aws_ssh emr-all
|
|
51
|
-
|
|
52
|
-
aws_ssh app
|
|
51
|
+
# Also exposed as `aws_ssh`
|
|
52
|
+
uvx --from aws-ssh-utils aws_ssh
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
This allows you to interactively SSH to an EC2 instance, EMR instance, or all EMR instances with TMUX.
|
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
# AWS SSH Utils
|
|
2
|
-
|
|
3
|
-
[](https://pypi.org/project/aws-ssh-utils/)
|
|
4
|
-
[](#)
|
|
5
|
-
[](https://pypi.org/project/aws-ssh-utils/)
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
aws_ssh
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
This allows you to interactively SSH to an EC2 instance, EMR instance, or all EMR instances with TMUX.
|
|
20
|
-
|
|
21
|
-
It utilizes [questionary](https://pypi.org/project/questionary/) to ask you which instance you want to connect to.
|
|
22
|
-
|
|
23
|
-
## App
|
|
24
|
-
|
|
25
|
-
Terminal UI to browse EC2 instances and EMR clusters, with SSH shells in tabs.
|
|
26
|
-
It's the default command, so `aws_ssh` and `aws_ssh -p my-profile` launch it too.
|
|
27
|
-
Each connection tries, in order: `~/.ssh/config`, SSH over AWS SSM (`session-manager-plugin`), opkssh (via instance/cluster tags),
|
|
28
|
-
the instance's EC2 key found in `~/.ssh`, then your default keys/ssh-agent.
|
|
29
|
-
Unknown host keys are accepted and appended to `~/.ssh/known_hosts`; changed host keys are rejected.
|
|
30
|
-
|
|
31
|
-
```shell
|
|
32
|
-
$ aws_ssh app --help
|
|
33
|
-
Usage: aws_ssh app [OPTIONS]
|
|
34
|
-
|
|
35
|
-
Browse EC2 instances and EMR clusters, and open SSH shells in tabs.
|
|
36
|
-
|
|
37
|
-
Options:
|
|
38
|
-
-p, --profile TEXT Which AWS profile to use
|
|
39
|
-
-r, --region TEXT Which AWS region to use
|
|
40
|
-
--scrollback INTEGER RANGE Lines of scrollback per shell. Defaults to your
|
|
41
|
-
tmux or Windows Terminal setting, else 1000.
|
|
42
|
-
[x>=0]
|
|
43
|
-
--help Show this message and exit.
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Scroll back with the mouse wheel or `shift+PgUp`/`shift+PgDn`; typing jumps back to the prompt.
|
|
47
|
-
`F12` shows/hides the sidebar, `ctrl+w` closes a failed tab, `ctrl+q` quits. Every other key goes to the focused shell.
|
|
48
|
-
Logs are viewable with `textual console`.
|
|
49
|
-
|
|
50
|
-
## EC2
|
|
51
|
-
|
|
52
|
-
Select an instance from an interactive list. You can filter the instances by name.
|
|
53
|
-
|
|
54
|
-
```shell
|
|
55
|
-
$ aws_auth ec2 --help
|
|
56
|
-
Usage: aws_ssh ec2 [OPTIONS]
|
|
57
|
-
|
|
58
|
-
Asks user which EC2 instance they want to connect to, then opens an
|
|
59
|
-
interactive SSH session to the instance
|
|
60
|
-
|
|
61
|
-
Options:
|
|
62
|
-
-p, --profile TEXT Which AWS profile to use
|
|
63
|
-
-r, --region TEXT Which AWS region to use
|
|
64
|
-
-u, --user TEXT Which user to connect as
|
|
65
|
-
--private / --public Connect to the instance's private or public IP
|
|
66
|
-
-k, --key-file FILE Which key file to use to connect
|
|
67
|
-
--scrollback INTEGER RANGE
|
|
68
|
-
Lines of scrollback per shell. Defaults to your tmux or
|
|
69
|
-
Windows Terminal setting, else 1000. [x>=0]
|
|
70
|
-
--help Show this message and exit.
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## EMR
|
|
74
|
-
|
|
75
|
-
Select the EMR cluster, instance group, and instance to connect to.
|
|
76
|
-
|
|
77
|
-
```shell
|
|
78
|
-
$ aws_ssh emr --help
|
|
79
|
-
Usage: aws_ssh emr [OPTIONS]
|
|
80
|
-
|
|
81
|
-
Asks user which Cluster and EC2 instance they want to connect to, then opens an interactive SSH session to the instance
|
|
82
|
-
|
|
83
|
-
Options:
|
|
84
|
-
-p, --profile TEXT Which AWS profile to use
|
|
85
|
-
-r, --region TEXT Which AWS region to use
|
|
86
|
-
-u, --user TEXT Which user to connect as
|
|
87
|
-
--private / --public Connect to the instance's private or public IP
|
|
88
|
-
-k, --key-file FILE Which key file to use to connect
|
|
89
|
-
--scrollback INTEGER RANGE
|
|
90
|
-
Lines of scrollback per shell. Defaults to your tmux or
|
|
91
|
-
Windows Terminal setting, else 1000. [x>=0]
|
|
92
|
-
--help Show this message and exit.
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## EMR All
|
|
96
|
-
|
|
97
|
-
Select the EMR cluster to connect to. Then creates a new TMUX session with a window per instance. Each window will have an SSH connection to that instance open.
|
|
98
|
-
|
|
99
|
-
```shell
|
|
100
|
-
$ aws_ssh emr-all --help
|
|
101
|
-
Usage: aws_ssh emr-all [OPTIONS]
|
|
102
|
-
|
|
103
|
-
Asks user which Cluster and EC2 instance they want to connect to, Then
|
|
104
|
-
prints a tmux cli statement that will open a new session with a window per
|
|
105
|
-
ec2 instance with ssh shell already opened.
|
|
106
|
-
|
|
107
|
-
Options:
|
|
108
|
-
-p, --profile TEXT Which AWS profile to use
|
|
109
|
-
-r, --region TEXT Which AWS region to use
|
|
110
|
-
-u, --user TEXT Which user to connect as
|
|
111
|
-
--private / --public Connect to the instance's private or public IP
|
|
112
|
-
-k, --key-file FILE Which key file to use to connect
|
|
113
|
-
--help Show this message and exit.
|
|
114
|
-
```
|
|
1
|
+
# AWS SSH Utils
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/aws-ssh-utils/)
|
|
4
|
+
[](#)
|
|
5
|
+
[](https://pypi.org/project/aws-ssh-utils/)
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
uvx aws-ssh-utils
|
|
9
|
+
|
|
10
|
+
uvx aws-ssh-utils app # optional - `app` is default.
|
|
11
|
+
uvx aws-ssh-utils ec2
|
|
12
|
+
uvx aws-ssh-utils emr
|
|
13
|
+
uvx aws-ssh-utils emr-all
|
|
14
|
+
|
|
15
|
+
# Also exposed as `aws_ssh`
|
|
16
|
+
uvx --from aws-ssh-utils aws_ssh
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This allows you to interactively SSH to an EC2 instance, EMR instance, or all EMR instances with TMUX.
|
|
20
|
+
|
|
21
|
+
It utilizes [questionary](https://pypi.org/project/questionary/) to ask you which instance you want to connect to.
|
|
22
|
+
|
|
23
|
+
## App
|
|
24
|
+
|
|
25
|
+
Terminal UI to browse EC2 instances and EMR clusters, with SSH shells in tabs.
|
|
26
|
+
It's the default command, so `aws_ssh` and `aws_ssh -p my-profile` launch it too.
|
|
27
|
+
Each connection tries, in order: `~/.ssh/config`, SSH over AWS SSM (`session-manager-plugin`), opkssh (via instance/cluster tags),
|
|
28
|
+
the instance's EC2 key found in `~/.ssh`, then your default keys/ssh-agent.
|
|
29
|
+
Unknown host keys are accepted and appended to `~/.ssh/known_hosts`; changed host keys are rejected.
|
|
30
|
+
|
|
31
|
+
```shell
|
|
32
|
+
$ aws_ssh app --help
|
|
33
|
+
Usage: aws_ssh app [OPTIONS]
|
|
34
|
+
|
|
35
|
+
Browse EC2 instances and EMR clusters, and open SSH shells in tabs.
|
|
36
|
+
|
|
37
|
+
Options:
|
|
38
|
+
-p, --profile TEXT Which AWS profile to use
|
|
39
|
+
-r, --region TEXT Which AWS region to use
|
|
40
|
+
--scrollback INTEGER RANGE Lines of scrollback per shell. Defaults to your
|
|
41
|
+
tmux or Windows Terminal setting, else 1000.
|
|
42
|
+
[x>=0]
|
|
43
|
+
--help Show this message and exit.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Scroll back with the mouse wheel or `shift+PgUp`/`shift+PgDn`; typing jumps back to the prompt.
|
|
47
|
+
`F12` shows/hides the sidebar, `ctrl+w` closes a failed tab, `ctrl+q` quits. Every other key goes to the focused shell.
|
|
48
|
+
Logs are viewable with `textual console`.
|
|
49
|
+
|
|
50
|
+
## EC2
|
|
51
|
+
|
|
52
|
+
Select an instance from an interactive list. You can filter the instances by name.
|
|
53
|
+
|
|
54
|
+
```shell
|
|
55
|
+
$ aws_auth ec2 --help
|
|
56
|
+
Usage: aws_ssh ec2 [OPTIONS]
|
|
57
|
+
|
|
58
|
+
Asks user which EC2 instance they want to connect to, then opens an
|
|
59
|
+
interactive SSH session to the instance
|
|
60
|
+
|
|
61
|
+
Options:
|
|
62
|
+
-p, --profile TEXT Which AWS profile to use
|
|
63
|
+
-r, --region TEXT Which AWS region to use
|
|
64
|
+
-u, --user TEXT Which user to connect as
|
|
65
|
+
--private / --public Connect to the instance's private or public IP
|
|
66
|
+
-k, --key-file FILE Which key file to use to connect
|
|
67
|
+
--scrollback INTEGER RANGE
|
|
68
|
+
Lines of scrollback per shell. Defaults to your tmux or
|
|
69
|
+
Windows Terminal setting, else 1000. [x>=0]
|
|
70
|
+
--help Show this message and exit.
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## EMR
|
|
74
|
+
|
|
75
|
+
Select the EMR cluster, instance group, and instance to connect to.
|
|
76
|
+
|
|
77
|
+
```shell
|
|
78
|
+
$ aws_ssh emr --help
|
|
79
|
+
Usage: aws_ssh emr [OPTIONS]
|
|
80
|
+
|
|
81
|
+
Asks user which Cluster and EC2 instance they want to connect to, then opens an interactive SSH session to the instance
|
|
82
|
+
|
|
83
|
+
Options:
|
|
84
|
+
-p, --profile TEXT Which AWS profile to use
|
|
85
|
+
-r, --region TEXT Which AWS region to use
|
|
86
|
+
-u, --user TEXT Which user to connect as
|
|
87
|
+
--private / --public Connect to the instance's private or public IP
|
|
88
|
+
-k, --key-file FILE Which key file to use to connect
|
|
89
|
+
--scrollback INTEGER RANGE
|
|
90
|
+
Lines of scrollback per shell. Defaults to your tmux or
|
|
91
|
+
Windows Terminal setting, else 1000. [x>=0]
|
|
92
|
+
--help Show this message and exit.
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## EMR All
|
|
96
|
+
|
|
97
|
+
Select the EMR cluster to connect to. Then creates a new TMUX session with a window per instance. Each window will have an SSH connection to that instance open.
|
|
98
|
+
|
|
99
|
+
```shell
|
|
100
|
+
$ aws_ssh emr-all --help
|
|
101
|
+
Usage: aws_ssh emr-all [OPTIONS]
|
|
102
|
+
|
|
103
|
+
Asks user which Cluster and EC2 instance they want to connect to, Then
|
|
104
|
+
prints a tmux cli statement that will open a new session with a window per
|
|
105
|
+
ec2 instance with ssh shell already opened.
|
|
106
|
+
|
|
107
|
+
Options:
|
|
108
|
+
-p, --profile TEXT Which AWS profile to use
|
|
109
|
+
-r, --region TEXT Which AWS region to use
|
|
110
|
+
-u, --user TEXT Which user to connect as
|
|
111
|
+
--private / --public Connect to the instance's private or public IP
|
|
112
|
+
-k, --key-file FILE Which key file to use to connect
|
|
113
|
+
--help Show this message and exit.
|
|
114
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|