Skip to content

Commit 89ad520

Browse files
authored
Merge pull request #20 from yokawasa/fix-connection-closed-by-remote-host-issue
Fix connection closed by remote host issue (closed by unknown port 65535)
2 parents 163537d + 5f42855 commit 89ad520

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
All notable changes to the "kubectl-plugin-ssh-jump" extension will be documented in this file.
44

5+
## 0.7.3
6+
7+
- Fix `Connection closed by remote host connection closed by unknown port 65535` issue ([#16](https://github.com/yokawasa/kubectl-plugin-ssh-jump/issues/16))
8+
- Add RSA workaround options (`-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa`)to commands in ProxyCommand only if the local OpenSSH version >= `8.5`
9+
510
## 0.7.2
611

712
- Fix `Bad configuration option: pubkeyacceptedalgorithms` issue ([#18](https://github.com/yokawasa/kubectl-plugin-ssh-jump/issues/18))
813
- Add OpenSSH version check
914
- Add RSA workaround options (`-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa`) introduced in [ssh-jump-0.7.1](https://github.com/yokawasa/kubectl-plugin-ssh-jump/releases/tag/0.7.1) only if the local OpenSSH version >= `8.5`
15+
- Add verbose option (`-v|--verbose`)
1016

1117
## 0.7.1
1218

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.2
1+
0.7.3

kubectl-ssh-jump

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ run_ssh_node(){
212212
fi
213213

214214
if [ "${destnode}" = "sshjump" ]; then
215-
ssh ${sshuser}@127.0.0.1 -p 2222 -i ${identity_sshjump} $sshargs
215+
ssh ${sshuser}@127.0.0.1 -p 2222 -i ${identity_sshjump} ${sshargs}
216216
else
217217
# Using the SSH Server as a jumphost (via port-forward proxy), ssh into the desired Node
218218
ssh -i ${identity} -p ${port} ${sshuser}@${destnode} \
219-
-o "ProxyCommand ssh root@127.0.0.1 -p 2222 -i ${identity_sshjump} -o \"StrictHostKeyChecking=no\" \"nc %h %p\"" $sshargs
219+
-o "ProxyCommand ssh root@127.0.0.1 -p 2222 -i ${identity_sshjump} ${sshargs} \"nc %h %p\"" ${sshargs}
220220
fi
221221
# Stop port-forward
222222
kill -3 ${pid_port_forward} 2>/dev/null

0 commit comments

Comments
 (0)