亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 2704 | 回復: 12
打印 上一主題 下一主題

SSH驗證問題 [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2008-08-13 12:02 |只看該作者 |倒序瀏覽
我的兩臺redhat  4   做RAC
以oracle用戶登錄,分別在兩臺機器上作(red1 red2)


mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa


然后在RAC1上執(zhí)行
red1-> cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
red1-> cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
red1-> ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
red1-> scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys

然后驗證
[oracle@Red1 .ssh]$ ls -l
total 24
-rw-r--r--  1 oracle oinstall 1644 Aug 13 11:32 authorized_keys
-rw-------  1 oracle oinstall  668 Aug 13 11:24 id_dsa
-rw-r--r--  1 oracle oinstall  601 Aug 13 11:24 id_dsa.pub
-rw-------  1 oracle oinstall  887 Aug 13 11:24 id_rsa
-rw-r--r--  1 oracle oinstall  221 Aug 13 11:24 id_rsa.pub
-rw-r--r--  1 oracle oinstall  454 Aug 13 11:36 known_hosts

[oracle@Red1 .ssh]$ ssh red1 date
oracle@red1's password:
Wed Aug 13 11:55:51 CST 2008
[oracle@Red1 .ssh]$ ssh red1 date
oracle@red1's password:
Wed Aug 13 11:55:56 CST 2008

[[oracle@Red1 .ssh]$ ssh red2 date
oracle@red2's password:
Wed Aug 13 11:59:40 CST 2008
[[oracle@Red1 .ssh]$ ssh red2 date
oracle@red2's password:
Wed Aug 13 11:59:40 CST 2008

為啥還是要提示我輸入密碼呢,我的第二臺機器是vmware copy過來,oracle 用戶設置都一樣的,ping red red-priv等都成功
為何就是不能實現(xiàn)免密碼呢,各位幫我看看呢

論壇徽章:
11
金牛座
日期:2015-03-19 16:56:22數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-02 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-24 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-02-03 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00季節(jié)之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
2 [報告]
發(fā)表于 2008-08-13 12:33 |只看該作者

回復 #1 whd 的帖子

是把red1 上的id_rsa.pub的輸入>> 到red2上的~/.ssh/authorized_keys中
red2的到red1上.....不是本機..

論壇徽章:
0
3 [報告]
發(fā)表于 2008-08-13 13:35 |只看該作者
我的是把red1的輸入到本機,再把red2的也輸入到本機, 然后copy覆蓋到red2的機器上,保持同步的
我的步驟應該沒問題,是照文檔作的,估計那里設置不到或有權(quán)限什么的問題,大家?guī)椭纯茨?/td>

論壇徽章:
11
金牛座
日期:2015-03-19 16:56:22數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-02 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-24 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-02-03 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00季節(jié)之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
4 [報告]
發(fā)表于 2008-08-13 13:38 |只看該作者
ssh oracle@red2
ssh oracle@red1

論壇徽章:
0
5 [報告]
發(fā)表于 2008-08-13 13:52 |只看該作者
[oracle@Red2 ~]$ ssh oracle@red2
oracle@red2's password:
Last login: Wed Aug 13 13:50:20 2008 from red2
-bash: Export: command not found
[oracle@Red2 ~]$ ssh oracle@red2
oracle@red2's password:
Last login: Wed Aug 13 13:50:34 2008 from red2
-bash: Export: command not found
[oracle@Red2 ~]$ ssh oracle@red1
The authenticity of host 'red1 (109.119.7.21)' can't be established.
RSA key fingerprint is d9:ef:38:17:b0:67:59:e6:41:37:c1:fe:e5:38:ae:4e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'red1,109.119.7.21' (RSA) to the list of known hosts.
oracle@red1's password:
Last login: Wed Aug 13 13:41:38 2008 from 109.119.17.173
-bash: Export: command not found
[oracle@Red1 ~]$ ssh oracle@red1
oracle@red1's password:
Last login: Wed Aug 13 13:51:25 2008 from red2
-bash: Export: command not found
[oracle@Red1 ~]$


不行啊,也試過的

論壇徽章:
0
6 [報告]
發(fā)表于 2008-08-13 14:21 |只看該作者

成功實現(xiàn)無密碼登錄

RSA實現(xiàn)無密碼認證:以Root身份登陸機器A,執(zhí)行ssh-keygen t rsa,一路回車,在Root/.ssh/下會生成2個文件id_rsa和id_rsa.pub,在機器B的Root目錄下建立目錄.ssh,在.ssh目錄下創(chuàng)建文件authorized_keys,把機器A上id_rsa.pub文件里的內(nèi)容復制到authorized_keys里并保存,通過機器A登陸機器B(ssh p機器B端口號 [email=root@機器B]root@機器B[/email]),登陸成功后機器A就會記錄下機器B的信息,以后從機器A上登陸機器B就不用輸入密碼,實現(xiàn)了直接登陸。

論壇徽章:
0
7 [報告]
發(fā)表于 2008-08-13 14:26 |只看該作者
步驟我都很清楚了,就是還是不能實現(xiàn)不輸密碼登錄,每次連接都要密碼,郁悶死了/

論壇徽章:
0
8 [報告]
發(fā)表于 2008-08-13 16:37 |只看該作者
難道AS4 up3的SSH有問題么

論壇徽章:
11
金牛座
日期:2015-03-19 16:56:22數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-02 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-24 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-02-03 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00季節(jié)之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
9 [報告]
發(fā)表于 2008-08-13 16:51 |只看該作者

回復 #8 whd 的帖子

我這里沒有問題~~~~~ 你還是暫時不做dsa那個吧~~

論壇徽章:
0
10 [報告]
發(fā)表于 2008-08-13 16:56 |只看該作者
你的sshd_config配了嗎?
如果配了貼出來看看。。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP