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

  免費注冊 查看新帖 |

Chinaunix

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

ssh 公鑰和私鑰 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-05-06 13:17 |只看該作者 |倒序瀏覽
用ssh-keygen -t rsa 生成公鑰和私鑰后,并把文件傳到另外一臺機器,可是每次用ssh連接另外一個機器的時候還是提示需要輸入密碼,請問可能是怎么個情況?

論壇徽章:
0
2 [報告]
發(fā)表于 2011-05-06 13:23 |只看該作者
回復(fù) 1# liuyong20395


   log下的 secure 日志里 關(guān)于ssh登錄的看下   應(yīng)該是權(quán)限不當(dāng)造成的

論壇徽章:
0
3 [報告]
發(fā)表于 2011-05-06 13:50 |只看該作者
本帖最后由 liuyong20395 于 2011-05-06 13:52 編輯

回復(fù) 2# taojie2000


    我在log/secure下看到連接日志是這樣的
May  6 21:29:27 localhost su: pam_unix(su-l:session): session opened for user root by test2(uid=500)

而我的操作過程是這樣:
[trade@localhost ~]$ ssh test
test2@test's password:
Permission denied, please try again.
test2@test's password:
Permission denied, please try again.
test2@test's password:
Permission denied (publickey,gssapi-with-mic,password).

在以前就是這樣操作的是可以的,這次不行的話我應(yīng)該修改怎樣的權(quán)限呢?

論壇徽章:
381
CU十二周年紀念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大;照
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
4 [報告]
發(fā)表于 2011-05-06 13:57 |只看該作者
ssh -vv test
看下什么地方有問題

論壇徽章:
0
5 [報告]
發(fā)表于 2011-05-06 14:05 |只看該作者
測試時發(fā)現(xiàn)其他是正常的,就這后面顯示失敗了:
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Unknown code krb5 195

debug1: Unspecified GSS failure.  Minor code may provide more information
Unknown code krb5 195

debug1: Unspecified GSS failure.  Minor code may provide more information
Unknown code krb5 195

debug2: we did not send a packet, disable method
debug1: Next authentication method: publickey
debug1: Trying private key: /home/test/.ssh/identity
debug1: Offering public key: /home/test/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Trying private key: /home/test/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
能判斷是怎么回事嗎?

論壇徽章:
0
6 [報告]
發(fā)表于 2011-05-06 14:26 |只看該作者
回復(fù) 3# liuyong20395


    log/secure 下就沒個 ssh 字段的日志?     grep  ssh 搜過沒?

論壇徽章:
0
7 [報告]
發(fā)表于 2011-05-06 14:29 |只看該作者
回復(fù) 5# liuyong20395


    再看下你服務(wù)器上 相關(guān) KEY 文件 權(quán)限屬性

論壇徽章:
0
8 [報告]
發(fā)表于 2011-05-06 14:32 |只看該作者
回復(fù) 7# taojie2000


    May  6 22:11:08 config sshd[3827]: Accepted password for test from 192.168.1.12 port 45977 ssh2
May  6 22:11:08 config sshd[3827]: pam_unix(sshd:session): session opened for user test by (uid=0)
May  6 22:11:08 config sshd[3827]: pam_unix(sshd:session): session closed for user test

這是var/log/secure下的日志

authorized_keys的權(quán)限屬性是644

論壇徽章:
381
CU十二周年紀念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大;照
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
9 [報告]
發(fā)表于 2011-05-06 14:50 |只看該作者
那個是正常的日志,不正常的時候日志什么也沒有?

論壇徽章:
0
10 [報告]
發(fā)表于 2011-05-06 16:26 |只看該作者
沒有不正常的日志,日志都是顯示正常的。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(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