cmd/tailcat: ssh has no way to choose an SSH identity file
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず tailcat ssh のフラグ処理と、ssh に渡す引数の組み立て方を読みます。この issue では特定のファイルやテストは指定されていません。提案されている -i オプションを -- の前に追加し、identity file と -o IdentitiesOnly=yes を渡してから、引数処理のテストを追加または更新します。tailcat ssh -i <file> <address> でその identity が選択され、リモートコマンドの引数も引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
cmd/tailcat: ssh has no way to choose an SSH identity file
Use case
I want to connect with tailcat ssh to different servers, each started with different authorized key (tailcat serve --ssh-authorized-keys=... ssh). I would like to be able to choose the key per invocation from the command line
Current behavior
Currently there is no way to pass identity file through
tailcat ssh -i ~/.ssh/mykey <tc-addr>fails, because-iis not a known flag.tailcat ssh <tc-addr> -i ~/.ssh/mykeypasses-i ~/.ssh/mykeyafter--, so ssh runs it as the remote command.
Workarounds
- ssh-agent, holding all key, offers keys one at a time until one succeeds - user cannot specify which key to use
~/.ssh/configentries per server specifying IdentityFile - needs to be kept up to date
Proposal
tailcat ssh gets new -i flag
- keyfile is passed to ssh as
-i <file> -o IdentitiesOnly=yes - it would follow the existing
-pflag, and come before--
tailcat cpcould also be updated-iflag for consistency
I'm happy to send a PR for this, if you agree with this approach
The estimated since the size of this change would be small (~30 lines of code + tests).
- 主要言語
- Go
- スター
- 10.1k
- フォーク
- 470
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 19
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tailscale/tailcat のほかの issue
-
Update Tailscale dependency for Android cgo fallback fix対応中かも @lozbrown が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 40/100
tailscale/tailcat#200 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
A client that restarts with the same node key takes about 5 s to connect対応中かも @cnupy が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 24/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
tailscale/tailcat#190 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
tailscale/tailcat の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
slavakurilyak/awesome-ai-agents#1041 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
goreleaser/nfpm#1199 ·
メンテナーはふだん 1 日以内に返信
-
edit fails on projects without a Dockerfile対応中かも @weirong-ui が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kubernetes-sigs/kubebuilder#6209 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 72/100
hiero-ledger/hiero-sdk-go#1911 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信