yes its working when i remove user@ from the command. But I want to run it with the rsa key-generation module in the following manner,
host1 ~# ssh-keygen -t rsa
host1 ~# scp .ssh/id_rsa.pub
user@host2:host1_id_rsa.pub
host1 ~# ssh user@host2
over here when i enter the root password of host2 it's giving me an error message of
Permission denied, please try again. Which i don't understand why its doing so? I then want to run the following commands.
host2 ~$ mkdir .ssh
host2 ~$ chmod 700 .ssh
host2 ~$ cd .ssh
host2 .ssh$ mv ../host1_id_rsa.pub ./
host2 .ssh$ cat host1_id_rsa >> authorized_keys
host2 .ssh$ chmod 600 authorized_keys