mpi - Connecting laptops through ssh and adding hosts to laptop -
i want make mpi cluster between 2 laptops. need connect via ssh. following link: https://help.ubuntu.com/community/mpichcluster accomplishing it. before need add other laptop's ip address known hosts. when googled got know need manually edit /etc/hosts file (like doing in text editor) super user permission. i'm apprehensive changing manually. can tell how add hosts can proceed project.
here contents of /etc/hosts file:
127.0.0.1 localhost 127.0.1.1 shabhri-hp-pavilion-15-notebook-pc # following lines desirable ipv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
you add new hosts ip addresses @ end of first section. this:
127.0.0.1 localhost 127.0.1.1 shabhri-hp-pavilion-15-notebook-pc 192.168.0.2 otherlaptop 192.168.0.3 laptopnumber3 ...etc... # following lines desirable ipv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
Comments
Post a Comment