一樣是SSH的問題 - Linux

Gilbert avatar
By Gilbert
at 2011-04-05T19:15

Table of Contents

現在有兩台電腦(A跟B)

A已經可以順利用SSH無密碼連進B,但是現在沒有辦法從B用SSH無密碼連到A

步驟如下

1. ssh-copy-id -i A@desktop

2. 出現ERROR(No identities found) ------問題1

3. ssh-copy-id -i /root/.ssh/id_rsa A@desktop

3. 一樣出現ERROR(No identities found)

4. 嘗試登入localhost (ssh localhost)

5. 出現訊息

The authenticity of host 'localhost' can't be established
RSA Key fingerprint is ..................................
Are you sure you want to continue connecting (yes/no)?

(輸入yes後)

Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
(輸入密碼後)
Permission denied,please try again. -----問題二

接著又輸入了兩次都還是錯誤......


察看了/etc/hosts 裏面是有localhost及電腦A的

而在sshd_config裏的設定也是允許root登入(PermitRootLogin yes)

為什麼會發生問題二的狀況呢?

又,為什麼會有No identities found(問題1)的狀況發生呢?
(嘗試過到/root/.ssh下執行command依然不行)


麻煩各位解惑了,謝謝

--
「學弟,我東西掉了,幫我撿一下」

「喔...」

醫生診斷:撕裂傷

--
Tags: Linux

All Comments

Tom avatar
By Tom
at 2011-04-06T20:46
可以從A連到B後在從B用SSH連到LOCALHOST
Queena avatar
By Queena
at 2011-04-07T10:36
可是卻沒有辦法直接從B用SSH連到LOCALHOST

gcc 編譯.o 不能執 command not found

Noah avatar
By Noah
at 2011-04-05T18:08
※ 引述《bjk (Up2u)》之銘言: : ===hello.c === : #includeandlt;stdio.handgt; : #includeandlt;stdlib.handgt; : int main(){ : prinf(and#34;Helloand#34;); : return 0; ...

各種Linux版本的使用

Skylar DavisLinda avatar
By Skylar DavisLinda
at 2011-04-05T17:53
我想一些新手應該會需要這些資訊。因為是作者龜毛,雖然只是一些老手都知 道的東西,這篇不想被轉出去,也不想被引用,只想放在這個版。 32bit Redhat 9 (gnome) 我第一個linux作業系統,第一次總是比較痛的。 CenOS 4/ CentOS 5 (gnome) 還滿好用的。會用到它是因為要 ...

LibreOffice 中文介面字體很小

Audriana avatar
By Audriana
at 2011-04-05T17:38
最近從OO跳到 LibreOffice 3.3.2 灌了中文語系後覺得介面選單的字體小且不好看 英文也是字體偏小 如圖:http://imgur.com/0SvrP 設定裡面找了一下好像只有設顏色的.. 不知道有人有這個困擾嗎 系統是 Ubuntu 10.04 LibreOffice是由ppa a ...

sed指令取代的問題

Elizabeth avatar
By Elizabeth
at 2011-04-05T16:58
很可惜今天收假要回營區了. 這邊的是我的方法: a=$(cat test | grep and#39;^[a-z]*\.[a-z]*\at[a-z]*\.[a-z]*\.[a-z]*and#39;) 上面先把東西存起來到a cat test | sed and#34;s/[a-z]*\.[a-z]*\a ...

UBUNTU安裝firefox 4.0

Oliver avatar
By Oliver
at 2011-04-05T16:50
你看CPU使用率有沒有100% 有些ubuntu的機台會因為addons的原因造成開不了 ※ 引述《bjk (Up2u)》之銘言: : 請問,我解壓縮之後 : 點firefox沒有反應,在桌面建立捷徑 : 會出現firefox的圖示 : 但是點了之後也沒有反應 : 我是用fedora10 : ※ 引述《gh ...