1、安装Homebrew,目的是执行 brew 命令,解决 brew: command not found问题
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、rz、sz命令的支持需要下载安装lrzsz软件,安装命令:brew install lrzsz ,安装即可。
3、本地安装
cd /usr/local/bin wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh chmod 777 /usr/local/bin/iterm2-*
wget 不能用;
用本地的;
安装该软件:
提示证书问题:
wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh --no-check-certificate
chmod +x iterm2-recv-zmodem.sh
chmod +x iterm2-send-zmodem.sh
4、对应服务端安装:
5、
6、在右侧选择Advanced选项卡,点击Triggers下的Edit
点击左下角的新增(+)按钮;并新增两项:
Regular expression: **B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: checked
Regular expression: **B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Instant: checked
文件上传rz
文件下载sz
ssh -A -p 22 root@10.167.200.169