I have two machines that were setup exactly the same with the same name and users and everything exactly the same. Each machine has two users with this names userA (userA@UserA) and userB (userB@UserA). I've connected both machines using a cable and setup a network wired connection and then
ping and they both can see each other.
This is how the
etc/hosts look like in both machines:
127.0.0.1 localhost 127.0.1.1 UserA # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 192.168.0.1 master 192.168.0.2 slave
what I want to do is to change the
UserA from both machines to make one named
master and the other called
slave so that on the master the users will be like this (
userB@master) while on the slave they will be (
The other thing I want to be able to do it is running this command:
userB@master:~$ ssh-copy-id -i $HOME/.ssh/id_rsa.pub userB@slave
but the problem when I run it I get this error:
/usr/bin/ssh-copy-id: ERROR: No identities found
So if anyone could please advise.