Changes between Version 9 and Version 10 of waue/sshKeyAuth


Ignore:
Timestamp:
Feb 23, 2009, 5:56:24 PM (16 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/sshKeyAuth

    v9 v10  
    4242|| !BatchMode || If set to ``yes'', passphrase/password querying will be disabled. This option is useful in scripts and other batch jobs where no user is present to supply the password.  The argument must be ``yes'' or ``no''.  The default is ``no''. ||
    4343|| !PubkeyAuthentication || Specifies whether to try public key authentication.  The argument to this keyword must be ``yes'' or ``no''.  The default is ``yes''.  This option applies to protocol version 2 only. ||
     44
     45* 每台ssh重新啟動
     46改寫一個shell如下,就可以自動把改好的ssh_config檔複製到每台節點並重新啟動ssh
     47{{{
     48#!/bin/bash
     49
     50for ((i=2;i<=7;i++));
     51do
     52 scp /etc/ssh/ssh_config "192.168.1.$i":/etc/ssh/ssh_config
     53 ssh "192.168.1.$i" /etc/init.d/ssh restart
     54done
     55}}}