1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-24 22:06:14 +01:00
github.com_openSUSE_osc/osc
Daniel Mach a7e5e12c5a Allow users to prefer ssh key over password auth
If `sshkey` config option is set, then osc prefers it over password auth.
If `sshkey` config option is not set and the server supports both basic
and signature auth, basic auth is used and ssh key is NOT auto-detected.

Users who want to use ssh auth with ssh key auto-detection can now leave
the `pass` config option empty to trigger ssh key auto-detection.

The ssh-key autodetection picks the first key that matches:
- key loaded to ssh-agent (`ssh-add -l`) that has a public key in ~/.ssh
- ~/.ssh/{id_ed25519,id_rsa}

It is also recommended to use Obfuscated or Plaintext credentials manager.
Please be aware that storing passwords using these credentials managers
is unsafe, because they're stored in plain text on disk.

Example:

    [<apiurl>]
    user=<username>
    pass=
    # ssh key is auto-detected because `pass` is empty
    sshkey=
    credentials_mgr_class=osc.credentials.ObfuscatedConfigFileCredentialsManager
2022-07-22 08:20:44 +02:00
..
util Merge pull request #1043 from dirkmueller/download_url_quoting 2022-06-02 13:28:59 +02:00
__init__.py replace urlgrabber to enable python3 compatibility 2018-10-19 09:31:37 +02:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py Report a config error when trying to load credentials_mgr_class that does't exist 2022-03-28 09:49:55 +02:00
build.py Merge pull request #1043 from dirkmueller/download_url_quoting 2022-06-02 13:28:59 +02:00
checker.py Resolve PEP8 issue W291 2014-08-12 15:01:16 +02:00
cmdln.py Never require login in the help command 2022-05-05 11:07:28 +02:00
commandline.py Merge pull request #1027 from adrianschroeter/github 2022-06-02 10:21:02 +02:00
conf.py Allow users to prefer ssh key over password auth 2022-07-22 08:20:44 +02:00
core.py release 0.179 2022-06-02 14:29:11 +02:00
credentials.py Handle a callable in credentials._LazyPassword.__str__ 2022-04-14 01:47:10 +02:00
fetch.py Show the md5s that are failing to validate 2022-05-06 12:27:43 +10:00
grabber.py fix broken URLError handling in OscMirrorGroup.urlgrab() 2018-11-06 13:29:17 +01:00
meter.py Fix crash on terminal resize during download 2022-01-03 11:47:33 +01:00
OscConfigParser.py Fix several issues in HTML doc rendering, improve output 2022-03-16 15:19:24 +01:00
oscerr.py Report a config error when trying to load credentials_mgr_class that does't exist 2022-03-28 09:49:55 +02:00
oscssl.py Use correct appname for trusted-certs store 2019-07-28 14:59:14 +02:00
oscsslexcp.py - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +01:00