[英]ssh-agent issue on Raspberry Pi
Weird thing - on my raspberry pi running raspbian buster i can't seem to use the ssh agent.奇怪的事情 - 在我运行 raspbian buster 的树莓派上,我似乎无法使用 ssh 代理。 I know that in some systems you have to manually eval the
ssh-agent
output unlike on things like OSX where ssh-add
works out of the box.我知道在某些系统中,您必须手动评估
ssh-agent
output,这与ssh-add
开箱即用的 OSX 不同。 But for some reason on my Pi this is not working so I am getting the correct output from ssh-agent
but when i try to then run ssh-add
i still receieve the connection error:但是由于某种原因,在我的 Pi 上这不起作用,所以我从
ssh-agent
获得了正确的 output 但是当我尝试运行ssh-add
时,我仍然收到连接错误:
eval ssh-agent -s
SSH_AUTH_SOCK=/tmp/ssh-8Dc0i8qfejW0/agent.7476; export SSH_AUTH_SOCK;
SSH_AGENT_PID=7477; export SSH_AGENT_PID;
echo Agent pid 7477;
root@raspberrypi:~/git# ssh-add ~/.ssh/githubpersonal
Could not open a connection to your authentication agent.
Anybody have any ideas?有人有什么想法吗?
Cheers干杯
When you do:当你这样做时:
eval ssh-agent -s
You are not setting environment variables.您没有设置环境变量。 You need to do
你需要做
eval "$(ssh-agent -s)"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.