102 | | |
| 102 | * '''Step 5''' : Modify SSH Connections |
| 103 | * At first, you need to check if ssh have been installed on your machines.[[BR]] |
| 104 | If not, you could try ''apt-get install ssh'' to install ssh.[[BR]] |
| 105 | All nodes need to install ssh.[[BR]] |
| 106 | * Second, now we are going to establish ssh connections between all nodes without entering password.[[BR]] |
| 107 | Issue the following commands on '''ALL''' the other nodes. |
| 108 | {{{ |
| 109 | root@client-01:~/mpich2-1.0.7rc1# ssh-keygen -t dsa |
| 110 | Generating public/private dsa key pair. |
| 111 | Enter file in which to save the key (/root/.ssh/id_dsa): |
| 112 | Created directory '/root/.ssh'. |
| 113 | Enter passphrase (empty for no passphrase): |
| 114 | Enter same passphrase again: |
| 115 | Your identification has been saved in /root/.ssh/id_dsa. |
| 116 | Your public key has been saved in /root/.ssh/id_dsa.pub. |
| 117 | The key fingerprint is: |
| 118 | d7:ad:ce:0f:e2:d8:16:3d:92:10:b8:b3:7f:7b:68:d9 root@client-01 |
| 119 | root@client-01:~/mpich2-1.0.7rc1# |
| 120 | }}} |
| 121 | * Just press enter when the system promoting the messages. |
| 122 | * Copy id_dsa.pub and overwrite to ./authorized_keys |
| 123 | {{{ |
| 124 | root@client-01:~/mpich2-1.0.7rc1# cd /root/.ssh/ |
| 125 | root@client-01:~/.ssh# cp ./id_dsa.pub ./authorized_keys |
| 126 | }}} |
| 127 | * Copy all files under /root/.ssh/ and overwrite the same directory on all nodes. |
| 128 | * Establish ssh connections to all other nodes from node1(client-01).[[BR]] |
| 129 | While connecting to the other nodes first time, you need to enter 'yes'.[[BR]] |
| 130 | Since you will be automatically login as root to all the other nodes without typing any password.[[BR]] |
| 131 | If any error occurs, just remove /root/.ssh/known_hosts, and re-ssh. |