Posts

Showing posts from April, 2022

how to make passwordless communication between multiple hosts

  Sub: while doing cluster environment we required multiple nodes. hence for this, all servers should communicate with each other without credentials  EX: for example, three nodes like host1, host2, and host3 are 3 servers when you are in host1 terminal you can directly be moved to host2 without any new terminal by  > ssh host2  [ now without asking password you will be moved to host2 from host1 ] Setup : 1.  vi /etc/hosts 2.    Adding related hosts  in all places. Ie.,  hostip1 hostname1  hostip2 hostname2 hostip3 hostname3 3. SSH communication  [Generate SSH key passwordless]   [root@Host1]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): New Section 1 Page 3 Enter passphrase (empty for no passphrase): 4.  ssh-copy-...