Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Please see the Cloudera blog for information on the Cloudera Response to CVE-2021-4428

HDP 2.3 - SSH Login : How to copy authorized keys into local laptop ?

Explorer

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 ?

3 REPLIES 3

Super Mentor

@Satish Anjaneyappa

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/

.

Explorer

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 .


hdp.png

@ Satish

Change your network settings to NAT and then try.