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

  免費注冊 查看新帖 |

Chinaunix

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

大神們,ssh登錄問題求解啊~ [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-12-23 08:57 |只看該作者 |倒序瀏覽
本帖最后由 jiwang1980 于 2011-12-23 09:31 編輯

關(guān)于ssh配置登錄不需要密碼

步驟如下:
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

然后ssh localhost
結(jié)果還是讓我輸入密碼

調(diào)試信息:
1,
[root@hadoop .ssh]# ssh -v localhost
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_0' not found

debug1: Unspecified GSS failure.  Minor code may provide more information
Credentials cache file '/tmp/krb5cc_0' not found

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


debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password
root@localhost's password:


2,tail -f /var/log/secure
沒有輸出,所以不是認(rèn)證文件的權(quán)限問題

求思路

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期: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
2 [報告]
發(fā)表于 2011-12-23 09:00 |只看該作者
本帖最后由 chenyx 于 2011-12-23 09:00 編輯

你看下/var/log/messages日志,看看有沒有錯誤

論壇徽章:
0
3 [報告]
發(fā)表于 2011-12-23 09:19 |只看該作者
蟈蟈,木有任何消息提示

論壇徽章:
0
4 [報告]
發(fā)表于 2011-12-23 09:38 |只看該作者
log/secure

順便看相關(guān)目錄文件查權(quán)限

論壇徽章:
0
5 [報告]
發(fā)表于 2011-12-23 09:49 |只看該作者
不是權(quán)限問題,secure沒有錯誤輸出,3ks

論壇徽章:
2
技術(shù)圖書徽章
日期:2013-10-30 14:37:252015年亞洲杯之伊朗
日期:2015-04-30 13:37:02
6 [報告]
發(fā)表于 2011-12-23 10:17 |只看該作者
不要用local,用ssh serv_ip

論壇徽章:
0
7 [報告]
發(fā)表于 2011-12-23 10:52 |只看該作者
這不是問題的原因,3ks

論壇徽章:
17
CU大牛徽章
日期:2013-03-13 15:32:35午馬
日期:2014-07-29 13:09:18未羊
日期:2014-09-19 16:21:07巳蛇
日期:2014-09-29 16:17:06巳蛇
日期:2014-10-16 08:33:00白羊座
日期:2014-10-16 09:10:24申猴
日期:2015-01-09 11:36:332015年亞洲杯之澳大利亞
日期:2015-03-03 13:57:302015年辭舊歲徽章
日期:2015-03-03 16:54:152015年亞洲杯之沙特阿拉伯
日期:2015-03-27 11:24:282015亞冠之阿爾納斯?fàn)?日期:2015-06-16 11:50:23CU大;照
日期:2013-03-13 15:38:15
8 [報告]
發(fā)表于 2011-12-23 14:43 |只看該作者
/etc/ssh/sshd_config文件修改了嗎?下面幾行注釋去掉
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys

重啟sshd服務(wù),/etc/init.d/sshd restart

論壇徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年紀(jì)念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役紀(jì)念章
日期:2022-04-24 14:33:24
9 [報告]
發(fā)表于 2011-12-23 23:18 |只看該作者
本地.ssh 700
遠(yuǎn)程.ssh 755

論壇徽章:
0
10 [報告]
發(fā)表于 2011-12-24 08:45 |只看該作者
試了,一樣的錯誤,3ks
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(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