ssh config 在~目录下的.ssh文件夹冲创建一个config文件,文件内容输入: host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p expect screen alfred