Skip to content

Commit 68d5bac

Browse files
committed
add options "-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa" for newer ssh client scenario
Signed-off-by: Yoichi Kawasaki <yokawasa@gmail.com>
1 parent 3606ce3 commit 68d5bac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubectl-ssh-jump

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ run_ssh_node(){
199199

200200
if [ "${destnode}" = "sshjump" ]; then
201201
ssh ${sshuser}@127.0.0.1 -p 2222 -i ${identity_sshjump} \
202-
-o "StrictHostKeyChecking=no" $sshargs
202+
-o StrictHostKeyChecking=no -o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa $sshargs
203203
else
204204
# Using the SSH Server as a jumphost (via port-forward proxy), ssh into the desired Node
205205
ssh -i ${identity} -p ${port} ${sshuser}@${destnode} \
206206
-o "ProxyCommand ssh root@127.0.0.1 -p 2222 -i ${identity_sshjump} -o \"StrictHostKeyChecking=no\" \"nc %h %p\"" \
207-
-o "StrictHostKeyChecking=no" $sshargs
207+
-o StrictHostKeyChecking=no -o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa $sshargs
208208
fi
209209
# Stop port-forward
210210
kill -3 ${pid_port_forward} 2>/dev/null

0 commit comments

Comments
 (0)