保持 ssh session 长连接不断开有两种方式
- 在服务器端配置
/etc/ssh/sshd_config
TCPKeepAlive yes ClientAliveInterval 120 ClientAliveCountMax 30
- 在客户端配置
~/.ssh/config
Host * ServerAliveInterval 120 ServerAliveCountMax 30
保持 ssh session 长连接不断开有两种方式
/etc/ssh/sshd_config
TCPKeepAlive yes
ClientAliveInterval 120
ClientAliveCountMax 30
~/.ssh/config
Host *
ServerAliveInterval 120
ServerAliveCountMax 30
© 本文著作权归作者所有,转载前请务必署名
安装语言包sudo apt-updatesudo apt-get install language-pack-zh-hans设置区域为中国sudo update-locale LANG=zh_CN.UTF-8
ls -l1v ./
sed -i 's/old-text/new-text/g' input.txt
FROM reg-ai.chehejia.com/system/ubuntu:22.04RUN printf "\deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted\n\deb http://mirrors.aliyun.
curl -X GET -G $API_URL \ -d base_path=$BASE_PATH \ -d clip_type=$CLIP_TYPE \ -d clip_vid=$CLIP_VID