Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

i am installing hortonworks single node cluster on google cloud, how can i generate ssh-keygen?

Highlighted

Re: i am installing hortonworks single node cluster on google cloud, how can i generate ssh-keygen?

Contributor

@prswamy t

Please check what is value set for the following property in sshd_config file.

# grep PasswordAuthentication /etc/ssh/sshd_config

Re: i am installing hortonworks single node cluster on google cloud, how can i generate ssh-keygen?

Explorer

i check the sshd_config file, what i need to change the things

3434-14-4.png

Highlighted

Re: i am installing hortonworks single node cluster on google cloud, how can i generate ssh-keygen?

Super Guru

@prswamy t

I'm sharing some more info, please try to match it in your host

[root@sandbox ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
c9:3a:80:cc:68:1e:da:d7:28:19:b1:05:a2:84:8c:56 root@sandbox.hortonworks.com
The key's randomart image is:
+--[ RSA 2048]----+
|=.oE             |
|=+ .             |
|o . .            |
| + =   . .       |
|.o* .   S        |
|+..o + .         |
|..+ o +          |
|   o   .         |
|                 |
+-----------------+

[root@sandbox ~]# cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

[root@sandbox ~]# ls -ld ~/.ssh/
drwx------ 2 root root 4096 2016-04-15 19:18 /root/.ssh/

[root@sandbox ~]# ls -lrt ~/.ssh/id_rsa
-rw------- 1 root root 1675 2016-04-15 19:18 /root/.ssh/id_rsa

[root@sandbox ~]# ls -lrt ~/.ssh/id_rsa.pub
-rw-r--r-- 1 root root 410 2016-04-15 19:18 /root/.ssh/id_rsa.pub

[root@sandbox ~]# ls -lrt ~/.ssh/authorized_keys
-rw-r--r-- 1 root root 1231 2016-04-15 19:19 /root/.ssh/authorized_keys

[root@sandbox ~]# ls -ld ~
dr-xr-xr-x. 36 root root 4096 2016-04-15 08:11 /root

[root@sandbox ~]# ssh root@localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 2e:8a:13:14:82:6d:22:ea:fa:82:69:d9:59:ea:fe:98.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
Last login: Fri Apr 15 19:04:18 2016 from 10.0.2.2
[root@sandbox ~]#
Don't have an account?
Coming from Hortonworks? Activate your account here