hbase
[root@localhost ~]# su [root@localhost ~]# useradd hadoop [root@localhost ~]# passwd hadoop
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:
5b:c8:fd:84:44:50:9d:78:6a:37:aa:04:3c:4a:c2:69 root@localhost.localdomain1
The key's randomart image is:
+--[ RSA 2048]----+
| .ooo . |
| .. + |
| . . . .o |
| E . +. +o.o |
| . o . oS.+o.. |
| . .o.o |
| ... . |
| . |
| |
+-----------------+
[root@localhost ~]# cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
[root@localhost ~]# chmod 0600 ~/.ssh/authorized_keys
[root@localhost ~]# ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is a0:7d:15:8a:cc:4b:06:bc:77:d2:df:cc:27:e5:4a:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Last login: Thu Jan 17 13:46:52 2019
[root@localhost ~]#
秘钥为空回车
浙公网安备 33010602011771号