参考 http://www.blogjava.net/stone2083/archive/2011/08/25/357291.html
在linux 中,登陆一次ssh后,就不需要再用密码了
具体步骤如下:
在$HOME/.ssh/config中加入
Host *
ControlMaster auto
COntrolPath /tmp/ssh-%r@%h
%r是登陆名,%h是机器名
参考 http://www.blogjava.net/stone2083/archive/2011/08/25/357291.html
在linux 中,登陆一次ssh后,就不需要再用密码了
具体步骤如下:
在$HOME/.ssh/config中加入
Host *
ControlMaster auto
COntrolPath /tmp/ssh-%r@%h
%r是登陆名,%h是机器名