小编Ker*_*nes的帖子

Git -- SSH 代理不工作

背景故事——我已经在这台计算机 (Windows XP) 上使用 Git 大约 8 个月没有问题。突然,上周,当我启动 Git 时,它不再询问我的用户名和密码。

每次我尝试触摸远程分支时它都会询问,并且考虑到我有密码而不是密码,这真的很烦人。

我在我的.profile文件中使用来自 GitHub 的代码:

SSH_ENV="$HOME/.ssh/environment"

# start the ssh-agent
function start_agent {
    echo "Initializing new SSH agent..."
    # spawn ssh-agent
    ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV"
    echo succeeded
    chmod 600 "$SSH_ENV"
    . "$SSH_ENV" > /dev/null
    ssh-add
}

# test for identities
function test_identities {
    # test whether standard identities have been added to the agent already
    ssh-add -l | grep "The agent has no identities" > /dev/null
    if …
Run Code Online (Sandbox Code Playgroud)

windows git windows-xp ssh-agent

5
推荐指数
1
解决办法
8997
查看次数

PuTTY 工作,终端 SSH 不是(使用私钥)

设置一个新服务器(在 Rackspace 上),让它在 PuTTY/Kitty 中工作。

当我从终端 (Cmder) 运行时,它要求我输入密码(PuTTY 没有),我点击“输入”(没有密码),然后它继续询问我用户的密码 - 违背了目的。

有什么建议?

操作系统:Windows 7
终端:Cmder
私钥:从 Puttygen
服务器创建的 .ppk :Rackspace Centos 6

windows ssh centos terminal cmder

3
推荐指数
1
解决办法
4312
查看次数

标签 统计

windows ×2

centos ×1

cmder ×1

git ×1

ssh ×1

ssh-agent ×1

terminal ×1

windows-xp ×1