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

Authentication failure when adding SSH server configuration #2780

Open
gpwen opened this issue Dec 3, 2024 · 0 comments
Open

Authentication failure when adding SSH server configuration #2780

gpwen opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gpwen
Copy link

gpwen commented Dec 3, 2024

Describe the bug

It seemed somewhere between version 2.71.1 and 2.72.2, jfrog CLI starts to authenticate with server when adding a SSH server configuration:

jf.exe config add "server-id" --interactive=false --url "ssh://server.com:1339"

That command will fail if the private SSH key has not been loaded.

The change makes it quite difficult to add large amount of server configuration (I have tens of different servers to add). It also makes it impossible to simply create a configuration file that can be deployed to production environment. The account that creates the configuration file is not necessarily the account that uses it. Therefore, authentication may indeed won't work when adding server configurations.

Is it possible to add an option to disable such behavior? Or revert back to the old behavior?

Thanks!

Current behavior

When executing the following command with JFrog CLI version 2.72.2:

jf.exe config add "server-id" --interactive=false --url "ssh://server.com:1339"

The following error will be reported:

[🚨Error] Authentication via SSH key failed.

That command used to work correctly in version 2.71.1.

Reproduction steps

Execute the following command:

jf.exe config add "server-id" --interactive=false --url "ssh://server.com:1339"

Expected behavior

The config command finishes correctly without error.

JFrog CLI version

2.72.2

Operating system type and version

Windows 11 23H2

JFrog Artifactory version

Enterprise Plus 7.77.12 rev 77712900

JFrog Xray version

Unknown

@gpwen gpwen added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant