Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ssh key from ssh agent that contains comment 'obs=<apiurl-hostname>' #1542

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

dmach
Copy link
Contributor

@dmach dmach commented Apr 19, 2024

Fixes: #1245

To give osc a hint which ssh key from the agent to use, append obs=<apiurl-hostname> to the private key’s comment. Example comment: <username@host> obs=api.example.com

  • To edit the key, run: ssh-keygen -c -f ~/.ssh/<private-key>
  • To query the key, run: ssh-keygen -y -f ~/.ssh/<private-key>

@pep8speaks
Copy link

pep8speaks commented Apr 19, 2024

Hello @dmach! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 633:121: E501 line too long (156 > 120 characters)
Line 645:121: E501 line too long (173 > 120 characters)
Line 651:121: E501 line too long (128 > 120 characters)
Line 660:121: E501 line too long (125 > 120 characters)

Comment last updated at 2024-04-22 07:47:02 UTC

osc/connection.py Dismissed Show dismissed Hide dismissed
@dmach dmach merged commit d4ec8e7 into openSUSE:master Apr 22, 2024
31 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sshkey= and agent-forwarding supports only a single key
2 participants