alexellis / alexellis/k3sup

ssh-agent on bash

未关闭
#452 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
7.4k
派生
430
PR 合并指标
30 天内没有已合并 PR

描述

**Expected behaviour**

when ssh agent is used, one of the keys added to the ssh agent is used

**Current behaviour**

when ssh agent is used, `~/.ssh/id_rsa` is used instead of one the keys added to the agent

**To Reproduce**
```
eval (ssh-agent -s)
ssh-add /Users/andrea/.ssh/key_other_than_id_rsa
k3sup install --host=192.168.0.5 --user=andrea
Running: k3sup install
2025/02/20 21:26:31 192.168.0.5
Public IP: 192.168.0.5
Error: unable to load the ssh key with path "/Users/andrea/.ssh/id_rsa": unable to read file: /Users/andrea/.ssh/id_rsa, open /Users/andrea/.ssh/id_rsa: no such file or directory
```

**Screenshots / console output**

See above

**Versions:**
- OS: macOS 15.3.1 (24D70)
- K3sup Version: Version: 0.13.6
Git Commit: 752c22af38d11b9d57f7a5ae4add3571d0d57b3a
- Bash version: GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24)

**Additional context**

looking at the repo on how the ssh-agent setup works, this should be supported and working on bash, what do I miss? :)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。