i have two hosts
H1 with ip=10.10.10.15
, OS=Windows Server 2016
and username=administrator
H2 with ip=10.10.10.16
, OS=Centos7
and username=user
I attempt to create a ssh connection between H1 and H2.
I mean, when i tape from the windows machine : ssh user@10.10.1.16
, i don’t need to tape the password of user
and directly i have a remote access
After generate the key with ssh-keygen
, i try with ssh-copy-id -i id_rsa.pub user@10.10.1.16
and i enter the password
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys user@10.10.10.16's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'user@10.10.10.16'" and check to make sure that only the key(s) you wanted were added.
but the console request always the password of user
Is there some way to resolve that ?