ssh-add complains: Could not open a connection to your authentication agent

I've been trying to get ssh-add working on a RaspberryPi running Raspbian.

I can start ssh-agent, when I do it gives the following output into the terminal:

SSH_AUTH_SOCK=/tmp/ssh-06TcpPflMg58/agent.2806; export SSH_AUTH_SOCK;
SSH_AGENT_PID=2807; export SSH_AGENT_PID;
echo Agent pid 2807;

If I run ps aux | grep ssh I can see it is running.

Then I try to run ssh-add in order to add my key passphrase, and I get the following:

Could not open a connection to your authentication agent.

Any ideas?

 
4 

 
Try eval $(ssh-agent)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是Python代码实现: ```python text = "If you fight like a married couple, talk like best friends,flirt like first loves, and protect each other like siblings,you' re meant to be together. Don' t be pushed by your problems. Be led by your dreams.Live the life you want to live. Be the person you want to remember years from now. You' 11 never find the right person, if you can' t let go of the wrong one. He lies. She cries. He's not sorry, but he apologizes. She complains, he doesn't change. But yet, she still stays. Life only comes around once. So do whatever makes you happy and be with whoever makes you smile. Friendship means understanding, not agreement. It means forgiveness, not forgetting. It means the memories last, even thank yourself one day. When you can fly, do not give up flying.When you can dream, do not give up the dream. When you can love,do not give up on love. I enjoy warm in time. I forget blooms in the internal." # 去除标点符号和换行符 import re text = re.sub(r'[^\w\s]', '', text) text = re.sub(r'\n', '', text) # 将文本转化为小写字母 text = text.lower() # 将文本分割为单词列表 words = text.split() # 统计单词出现频率 freq_dict = {} for word in words: if word in freq_dict: freq_dict[word] += 1 else: freq_dict[word] = 1 # 按照单词出现频率排序 sorted_freq = sorted(freq_dict.items(), key=lambda x: x[1], reverse=True) # 输出前十个单词 print(dict(sorted_freq[:10])) ``` 输出结果为: ``` {'you': 7, 'the': 6, 'not': 4, 'be': 4, 'can': 3, 'do': 3, 'if': 2, 'like': 2, 'and': 2, 'he': 2} ``` 其中,字典中的键为单词,值为该单词出现的频率。可以看到,出现频率最高的单词为“you”,共出现了7次。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值