SSH Jump Host
How to Access a Remote Server Using a SSH Jump Host
# Jump host
ssh -J user1@host1:{ssh_port_of_host1} user2@host2 -p {ssh_port_of_host2}
# Multiple Jumphosts List
ssh -J user1@host1:{ssh_port_of_host1}, user2@host2:{ssh_port_of_host2} user3@host3 -p {ssh_port_of_host3}
- 若出現 "Unable to negotiate with UNKNOWN port 65535: no matching host key type found. Their offer: ssh-rsa" 的錯誤訊息,是因為 ssh 客戶端禁用了 ssh-rsa 演算法,但目標伺服器只支援 ssh-rsa,故需在本地 ssh config 添加以下語法:
Host *
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
抑或是在指令中添加 flag "HostKeyAlgorithms" 及 "PubkeyAcceptedKeyTypes"
ssh -A -J user@host1:port user@host2 -p {target_host_port_for_ssh} -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa
以上方法參考該篇文章 https://blog.alanwei.com/blog/2022/01/24/ssh-no-matching-host-key-type-found
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information