Google Groups Home
Help | Sign in
ssh master slave setup
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Zhang Le  
View profile
 More options Mar 2, 12:42 pm
From: "Zhang Le" <robert.zhan...@gmail.com>
Date: Mon, 3 Mar 2008 01:42:12 +0800
Local: Sun, Mar 2 2008 12:42 pm
Subject: ssh master slave setup
曾几何时,我以为我已经把ssh的实用功能了解的差不多了(当年在即时,我的安全课上有一堂是专门将ssh的)
不过今天我还是了解了一个新的功能
ssh master slave setup
如果你通过ssh使用cvs/svn/git/rsync,这个设定能提高连接速度,因为省掉了认证的过程。
原理是一开始先开一个连接,放到后台,同时在~/.ssh目录下创建一个socket文件
之后再连这台机器就可用共用这个连接。

配置.ssh/config
Host *
  ControlMaster auto
  ControlPath ~/.ssh/master-%r@%h:%p

初始连接
ssh -M -N -f remote-machine
此命令会自动转入后台执行

详细资料请查看 ssh 和 ssh_config 的manpage

--
Zhang Le, Robert
http://r0bertz.blogspot.com
http://zh.gentoo-wiki.com
http://savannah.nongnu.org/projects/pgubook
http://groups.google.com/group/gentoo-china
http://groups.google.com/group/szlug


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zhang Le  
View profile
 More options Mar 2, 12:50 pm
From: "Zhang Le" <robert.zhan...@gmail.com>
Date: Mon, 3 Mar 2008 01:50:03 +0800
Local: Sun, Mar 2 2008 12:50 pm
Subject: Re: ssh master slave setup
2008/3/3 Zhang Le <robert.zhan...@gmail.com>:

> 曾几何时,我以为我已经把ssh的实用功能了解的差不多了(当年在即时,我的安全课上有一堂是专门将ssh的)
>  不过今天我还是了解了一个新的功能
>  ssh master slave setup
>  如果你通过ssh使用cvs/svn/git/rsync,这个设定能提高连接速度,因为省掉了认证的过程。

更正一下:应该只是省掉了握手的过程

>  原理是一开始先开一个连接,放到后台,同时在~/.ssh目录下创建一个socket文件
>  之后再连这台机器就可用共用这个连接。

>  配置.ssh/config
>  Host *
>   ControlMaster auto
>   ControlPath ~/.ssh/master-%r@%h:%p

>  初始连接
>  ssh -M -N -f remote-machine
>  此命令会自动转入后台执行

>  详细资料请查看 ssh 和 ssh_config 的manpage

--
Zhang Le, Robert
http://r0bertz.blogspot.com
http://zh.gentoo-wiki.com
http://savannah.nongnu.org/projects/pgubook
http://groups.google.com/group/gentoo-china
http://groups.google.com/group/szlug

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bibby  
View profile
 More options Mar 2, 8:20 pm
From: Bibby <michaelbi...@gmail.com>
Date: Sun, 2 Mar 2008 17:20:58 -0800 (PST)
Local: Sun, Mar 2 2008 8:20 pm
Subject: Re: ssh master slave setup
Nice tip.

PS:新版本的 OpenSSH 已经支持 chroot 用户了。

On Mar 3, 1:50 am, "Zhang Le" <robert.zhan...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ji YongGang  
View profile
 More options Mar 2, 9:17 pm
From: Ji YongGang <jungl...@gmail.com>
Date: Mon, 03 Mar 2008 10:17:36 +0800
Local: Sun, Mar 2 2008 9:17 pm
Subject: Re: ssh master slave setup

"Zhang Le" <robert.zhan...@gmail.com> writes:
> 曾几何时,我以为我已经把ssh的实用功能了解的差不多了(当年在即时,我的安全课上有一
> 堂是专门将ssh的)
> 不过今天我还是了解了一个新的功能
> ssh master slave setup
> 如果你通过ssh使用cvs/svn/git/rsync,这个设定能提高连接速度,因为省掉了认证的过程。
> 原理是一开始先开一个连接,放到后台,同时在~/.ssh目录下创建一个socket文件
> 之后再连这台机器就可用共用这个连接。

> 配置.ssh/config
> Host *
>   ControlMaster auto
>   ControlPath ~/.ssh/master-%r@%h:%p

不错,是比原来快很多!

> 初始连接
> ssh -M -N -f remote-machine
> 此命令会自动转入后台执行

有没有什么招让 svn、cvs 自动执行这步?

-- jungle

<#secure method=pgpmime mode=sign>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fwolf  
View profile
 More options Mar 3, 10:10 am
From: Fwolf <fwol...@gmail.com>
Date: Mon, 3 Mar 2008 23:10:51 +0800
Local: Mon, Mar 3 2008 10:10 am
Subject: Re: ssh master slave setup

弄了一个小脚本,专门干这事,大家批批看

--
http://www.fwolf.com/
Noise proves nothing.  Often a hen who has merely laid an egg cackles
as if she laid an asteroid.
                -- Mark Twain

  ssh_master.sh
2K Download

  signature.asc
< 1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zhang Le  
View profile
 More options Mar 24, 12:07 pm
From: Zhang Le <robert.zhan...@gmail.com>
Date: Mon, 24 Mar 2008 09:07:52 -0700 (PDT)
Local: Mon, Mar 24 2008 12:07 pm
Subject: Re: ssh master slave setup
On Mar 3, 10:17 am, Ji YongGang <jungl...@gmail.com> wrote:

> 有没有什么招让 svn、cvs 自动执行这步?

居然漏了这封信
这个我就没研究过了,:P

Zhang Le


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google