Changes between Version 6 and Version 7 of waue/sshKeyAuth


Ignore:
Timestamp:
Feb 23, 2009, 5:18:17 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/sshKeyAuth

    v6 v7  
    1 =簡化設定叢集的登入驗證=
     1= 簡化設定叢集的登入驗證 =
    22
    3 ==動機==
     3== 動機 ==
    44透過ssh免密碼登入主機來控制,已經是很普遍的一種方式來操控遠端Linux系統,不外乎將對方的public key加入到 authorized_keys,但是遇到網路環境中有大量的電腦需要互相驗證的時候,如在有10個節點的叢集環境中,因為要跑叢集程式,因此程式在每台電腦之間透過ssh運行都要暢行無阻。
    55
    6 ==以前的作法==
     6== 以前的作法 ==
    771. 以第一節點為平台,ssh 登入到第二台,ssh-keygen產生密碼對,登出;再登入到第三台...依此類推。
    882. 在第一節點收集其他電腦的public keys
     
    1111
    1212詳細作法可參考:[http://tech.seety.org/linux/diskless.html 兩小時叢集電腦]
    13 
    14 ==改進的作法==
     13 
     14== 改進的作法 ==
    1515
    1616據小澤源所建議,只要在第一節點產生完密鑰對,然後scp -r .ssh到其他台電腦就可以了。以下列出詳細作法:
     
    3535}}}
    3636ps : 注意原本是ask 改成是'''no''',如果改成yes的話就會被Strict住,比ask更慘
     37
     38=== 其他設定 ===
     39關於ssh_config的其他有趣設定參數,列如下
     40
     41Host    Restricts the following declarations (up to the next Host key-
     42             word) to be only for those hosts that match one of the patterns
     43             given after the keyword.
     44BatchMode
     45             If set to ``yes'', passphrase/password querying will be disabled.
     46             This option is useful in scripts and other batch jobs where no
     47             user is present to supply the password.  The argument must be
     48             ``yes'' or ``no''.  The default is ``no''.
     49
     50 PubkeyAuthentication
     51             Specifies whether to try public key authentication.  The argument
     52             to this keyword must be ``yes'' or ``no''.  The default is
     53             ``yes''.  This option applies to protocol version 2 only.