Created on 02-07-2017 03:56 AM - edited 09-16-2022 04:01 AM
After referring this link
https://community.hortonworks.com/questions/7686/ssh-login-issue.html
I have generated ssh key , but to copy that keys to local desktop/laptop it requires permission ,
I need access through winscp/fileZilla to copy from sandbox to desktop
How to do that ?
Created 02-07-2017 04:02 AM
In Linux based environments you can copy the authorized keys to the other hosts using the following command:
ssh-copy-id -i /PATH/TO/YOUR/.ssh/id_rsa.pub root@other_node1.example.com ssh-copy-id -i /PATH/TO/YOUR/.ssh/id_rsa.pub root@other_node2.example.com ssh-copy-id -i /PATH/TO/YOUR/.ssh/id_rsa.pub root@other_node3.example.com
.
In windows you might try an alternative approach of "ssh-copy-id" as described in the following link: http://serverfault.com/questions/224810/is-there-an-equivalent-to-ssh-copy-id-for-windows
.
The other easy approach will be to manually copy ans paste the content of the "/PATH/TO/YOUR/.ssh/id_rsa.pub" file to the ".ssh/authorized_keys" of the desired host.
.
http://www.pwrusr.com/system-administration/simply-paranoid-ssh-access-windows
http://www.servermom.org/passwordless-ssh-login/
.
Created 02-07-2017 05:10 PM
Hi Jay,
I tried ssh-copy-id -I from centos to windows for copying authorized keys .. But its saying connection refused . attached screenshot for reference
Any other alternatives ?
Appreciate your help .
Created 02-08-2017 10:31 AM
@ Satish
Change your network settings to NAT and then try.