You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
All notable changes to the "kubectl-plugin-ssh-jump" extension will be documented in this file.
4
4
5
+
## 0.4.0
6
+
7
+
- Support PEM (Privacy Enhanced Mail) scenario where you create key-pair but you only have .pem / private key (downloaded from AWS, for example) and you don't have the public key on your side.
8
+
5
9
## 0.3.2
6
10
7
11
- Changed a validation for destination name to support valid characters of hostname for SSH destination node that can start from ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', or the hyphen ('-'). Ref [RFC952](https://tools.ietf.org/html/rfc952) for valid characters of hostname.
@@ -23,4 +27,5 @@ All notable changes to the "kubectl-plugin-ssh-jump" extension will be documente
`username`, `identity`, `pubkey`, `port` options are cached, therefore you can omit these options afterward. The options are stored in a file named `$HOME/.kube/kubectlssh/options`
116
-
```
125
+
126
+
```sh
117
127
$ cat $HOME/.kube/kubectlssh/options
118
-
sshuser=azureuser
128
+
sshuser=myuser
119
129
identity=/Users/yokawasa/.ssh/id_rsa_k8s
120
130
pubkey=/Users/yokawasa/.ssh/id_rsa_k8s.pub
121
131
port=22
@@ -132,7 +142,7 @@ In addtion, add `--skip-agent` option if you want to skip automatic starting `ss
132
142
133
143
Show all node list. Simply executing `kubectl ssh-jump` gives you the list of destination nodes as well as command usage
134
144
135
-
```sh
145
+
```sh
136
146
$ kubectl ssh-jump
137
147
138
148
Usage:
@@ -144,7 +154,7 @@ Options:
144
154
ASCII letters 'a' through 'z' or 'A' through 'Z',
145
155
the digits '0' through '9', or hyphen ('-')
146
156
-u, --user <sshuser> SSH User name
147
-
-i, --identity <identity_file> Identity key file
157
+
-i, --identity <identity_file> Identity key file, or PEM(Privacy Enhanced Mail)
148
158
-p, --pubkey <pub_key_file> Public key file
149
159
-P, --port <port> SSH port for target node SSH server (default:22)
150
160
-a, --args <args> Args to execin ssh session
@@ -159,27 +169,35 @@ Options:
159
169
-h, --help Show this message
160
170
161
171
Example:
162
-
....
172
+
Scenario1 - You have private & public SSH key on your side
Then, SSH into a node `aks-nodepool1-18558189-0` with options like:
173
-
- usernaem: `azureuser`
185
+
#### Scenario1 - You have private & public SSH key on your side
186
+
187
+
Suppose you have private & public SSH key on your side and you want to SSH to a node named `aks-nodepool1-18558189-0`, execute the plugin with options like this:
You can skip starting `ssh-agent` by giving `--skip-agent`. This is actually a case where you already have ssh-agent managed. Or you can start new ssh-agent and add an identity key to the ssh-agent like this:
# At the end, run this if you want to kill the current agent
230
251
$ ssh-agent -k
231
252
```
232
253
254
+
#### Scenario2 - You have .pem file but you don't have private key on your side
255
+
256
+
From v0.4.0, the plugin supports PEM (Privacy Enhanced Mail) scenario where you create key-pair but you only have .pem / private key (downloaded from AWS, for example) and you don't have the public key on your side.
257
+
258
+
Suppose you've already downloaded a pem file and you want to ssh to your EKS worker node (EC2) named `ip-10-173-62-96.ap-northeast-1.compute.internal` using the pem, execute the plugin with options like this:
0 commit comments