2017-03-06 63 views
0

我在到位桶有一個回購爲我的測試網站Git的不斷提示我密碼我的SSH密鑰 - Ubuntu的VM

SSH

[email protected]:rkim/rkim-app.git 

我現在的混帳配置文件

cat .git/config

[core] 
    repositoryformatversion = 0 
    filemode = true 
    bare = false 
    logallrefupdates = true 
[remote "origin"] 
    url = [email protected]:rkim/rkim-app.git 
    fetch = +refs/heads/*:refs/remotes/origin/* 
[branch "master"] 
    remote = origin 
    merge = refs/heads/master 
[credential] 
    helper = store 

--list

user.name=Ryan Kim 
[email protected] 
credential.helper=cache --timeout=3600 
core.repositoryformatversion=0 
core.filemode=true 
core.bare=false 
core.logallrefupdates=true 
[email protected]:rkim/rkim-app.git 
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* 
branch.master.remote=origin 
branch.master.merge=refs/heads/master 
credential.helper=store 

我試過在here所有建議,而且還混帳配置了提示輸入密碼我。

混帳拉

關鍵 '/root/.ssh/id_rsa' 輸入密碼:

讓我知道如果我還能提供。

有人可以結束這個嗎?

任何事情,我應該看看?

是否需要重新啓動我的SSH服務或我的VM?

回答

4

Git的不斷提示我密碼

Enter passphrase for key '/root/.ssh/id_rsa': 

不,這不是密碼,但密碼。你是如何製作這把鑰匙的?你想達到什麼目的?

我試圖不一直輸入密碼。 - ihue 30秒前

然後你有兩種可能性。取下SSH密鑰的密碼,你將永遠不會有再次輸入密碼:

ssh-keygen -p -P old_passphrase -N "" -f ~/.ssh/id_rsa 

或臨時緩存中的密碼的地方。對於這一點,有ssh-agent,可使用

eval `ssh-agent` 

啓動,然後你可以添加鍵值:

ssh-add ~/.ssh/id_rsa 

你會一次口令在會話期間提示,然後永遠不再。

+0

我試圖不一直輸入密碼。 – ihue

+0

@ihue以及爲什麼它沒有寫在問題中?它看起來不像你第一個問題。查看更新。 – Jakuje

+0

我更新了我的帖子以清除混淆。抱歉。 – ihue