有时候需要用跳板机访问机器,更安全。
对于 openssh 7.3
以上的版本可以使用 ProxyJump
, 低于 7.3
可以使用 ProxyCommand
源码编译吧,步骤如下:
shellyum groupinstall "Development tools" yum install ncurses-devel wget https://sourceforge.net/projects/zsh/files/zsh/5.6.2/zsh-5.6.2.tar.xz/download tar -xvJf download cd zsh-5.6.2 ./configure make make install echo "/usr/local/bin/zsh" >> /etc/shells chsh -s /usr/local/bin/zsh
最近想把一台机器穿透到外网,先用 wireguard 做了组网,然后公网的节点直接端口转发不就完事了,参考了我 OpenWrt 使用的 SOCAT 工具,方法如下: