From 51dd04d54ec1111b841356d795f0fa5ac312b5da Mon Sep 17 00:00:00 2001 From: shenmo <47873776+shenmo7192@users.noreply.github.com> Date: Sat, 11 Mar 2023 18:24:21 +0800 Subject: [PATCH] Add -C option to enable Compress * feat: enable compress when ssh connect. This is very useful when ssh x forwarding --- src/assets/other/ssh_login.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/other/ssh_login.sh b/src/assets/other/ssh_login.sh index 5e0fe025e..8bf343aa1 100644 --- a/src/assets/other/ssh_login.sh +++ b/src/assets/other/ssh_login.sh @@ -23,7 +23,7 @@ set port [lindex $argv 2] set private_key [lindex $argv 3] set password [lindex $argv 4] set authentication {<>} -set ssh_cmd {zssh -X -o ServerAliveInterval=60} +set ssh_cmd {zssh -X -C -o ServerAliveInterval=60} set ssh_opt {$user@$server -p $port -o PubkeyAuthentication=$authentication} set remote_command {<>}