内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

Hadoop用戶配置ssh免密登錄

一般生產(chǎn)環(huán)境 Hadoop組件都是由hadoop用戶來啟動,首先需要配置hadoop用戶ssh免密登錄

目前成都創(chuàng)新互聯(lián)公司已為1000多家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)頁空間、網(wǎng)站改版維護、企業(yè)網(wǎng)站設(shè)計、白銀區(qū)網(wǎng)站維護等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

1.創(chuàng)建Hadoop用戶
[root@hadoop000 ~]# useradd hadoop
[root@hadoop000 ~]# id hadoop
uid=1102(hadoop) gid=1102(hadoop) groups=1102(hadoop)
[root@hadoop000 ~]# passwd hadoop
Changing password for user hadoop.
New password: 
BAD PASSWORD: it is too simplistic/systematic
BAD PASSWORD: is too simple
Retype new password: 
passwd: all authentication tokens updated successfully.
#給hadoop sudo權(quán)限
[root@hadoop000 ~]# vi /etc/sudoers
hadoop ALL=(root) NOPASSWD:ALL
2.切換到hadoop用戶 配置免密登錄
[root@hadoop000 ~]# su - hadoop
#確保有ssh服務(wù)
[hadoop@hadoop000 ~]$ sudo service sshd status
openssh-daemon (pid  24823) is running...
[hadoop@hadoop000 ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa): 
Created directory '/home/hadoop/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/hadoop/.ssh/id_rsa.
Your public key has been saved in /home/hadoop/.ssh/id_rsa.pub.
The key fingerprint is:
bd:75:87:ca:44:2d:1f:de:b7:5e:a0:96:ac:b3:7e:01 hadoop@hadoop000
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|             .   |
|            o o  |
|         .E. + + |
|        S ..o * +|
|           *.= oo|
|          . B. ..|
|          .o. . .|
|         .++   . |
+-----------------+
[hadoop@hadoop000 ~]$ cd .ssh
[hadoop@hadoop000 .ssh]$ ll
total 8
-rw------- 1 hadoop hadoop 1675 May 17 14:59 id_rsa
-rw-r--r-- 1 hadoop hadoop  395 May 17 14:59 id_rsa.pub
[hadoop@hadoop000 .ssh]$ cat id_rsa.pub >> authorized_keys
[hadoop@hadoop000 .ssh]$ ll
total 12
-rw-rw-r-- 1 hadoop hadoop  395 May 17 14:59 authorized_keys
-rw------- 1 hadoop hadoop 1675 May 17 14:59 id_rsa
-rw-r--r-- 1 hadoop hadoop  395 May 17 14:59 id_rsa.pub
#authorized_keys權(quán)限必須為600
[hadoop@hadoop000 .ssh]$ chmod 600 authorized_keys
[hadoop@hadoop000 .ssh]$ ssh hadoop000 date
The authenticity of host 'hadoop000 (192.168.6.217)' can't be established.
RSA key fingerprint is 25:d9:d6:7e:fa:e0:a7:92:7c:06:76:5c:2b:19:bf:a3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'hadoop000,192.168.6.217' (RSA) to the list of known hosts.
Thu May 17 15:00:28 CST 2018
[hadoop@hadoop000 .ssh]$ ssh hadoop000 date
Thu May 17 15:00:30 CST 2018
3.總結(jié)

hadoop用戶配置ssh免密登錄 authorized_keys權(quán)限必須改為600

新聞標(biāo)題:Hadoop用戶配置ssh免密登錄
本文路徑:http://www.rwnh.cn/article32/jisjsc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版營銷型網(wǎng)站建設(shè)、網(wǎng)站設(shè)計、域名注冊響應(yīng)式網(wǎng)站、品牌網(wǎng)站設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司
洱源县| 张家川| 古蔺县| 安国市| 嵊泗县| 都安| 长沙县| 宁远县| 汤原县| 合水县| 满城县| 镇康县| 梁河县| 大化| 鹤山市| 永善县| 友谊县| 分宜县| 云南省| 卓尼县| 桑日县| 上林县| 井陉县| 扎兰屯市| 田东县| 昌平区| 调兵山市| 宾川县| 塔城市| 汪清县| 德庆县| 建始县| 盐源县| 鄂尔多斯市| 通化市| 武定县| 龙口市| 综艺| 梨树县| 和龙市| 广东省|