I have installed to 2 Ubuntu on VMware and i m trying to communicate between 2 machines using
I made the following changes Updated the etc/host files on 2 machines Master and Slave with ips
127.0.0.2 slave 127.0.0.3 master
and created a key to communicate between the two machines.
When I try to copy the file from master to slave its copying into the master and not to the slave:
sh-keygen -t rsa -P "" cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys ssh-copy-id -i $HOME/.ssh/id_rsa.pub user@slave
Trying to copy from master to slave
scp -r /usr/local/somedir user@slave:/home/user/Downloads/Somethings
Could you please let me know where exactly I'm going wrong?