之前工位电脑到家里电脑之间rsync、scp老是失败,ssh倒是正常。刚刚才发现是因为ssh登录时有输出[1][2],shell配置改一下就好了。
[1] https://tlanyan.me/protocol-version-mismatch-is-your-shell-clean/
[2] https://fishshell.com/docs/current/faq.html#why-won-t-ssh-scp-rsync-connect-properly-when-fish-is-my-login-shell