pki keys are still created with salt-ssh and ssh_use_home_key #67324
Replies: 15 comments
-
@mitar this is expected behavior because if auth fails, it will ask to copy over the salt-ssh key. For example it will look something like this:
I would clarify this as expected behavior since we want to give the option to deploy the salt-ssh key. |
Beta Was this translation helpful? Give feedback.
-
Although I just thought we could probably just create the key when the user selects yes or when specifying in the config to use the key. I will approve as a feature request. |
Beta Was this translation helpful? Give feedback.
-
Thanks! Because in my setup we do not want to use or deploy any new keys to servers. If a key fails, then this is a failure and this is it. |
Beta Was this translation helpful? Give feedback.
-
BTW, is there a config to say to not use the key? How does one specify in config to use the key? |
Beta Was this translation helpful? Give feedback.
-
@mitar i dove into the code and found this: Also looking at the code I found if you have |
Beta Was this translation helpful? Give feedback.
-
I am not sure what are you asking here. This is an example of my master file I am using. |
Beta Was this translation helpful? Give feedback.
-
Should I set |
Beta Was this translation helpful? Give feedback.
-
I don't need you to try to attempt this i'm confident of the behavior. Sorry for sidetracking the issue there. Just saw some behavior when setting Apologies I was trying to answer your question:
I thought that was the option (ssh_key_deploy/--key-deploy) but it looks liek i was wrong From salt-ssh man page:
Looking at the code I believe it attempts to default to copying over that salt-ssh key if permission denied is in the return results. So I don't believe there is an option for this |
Beta Was this translation helpful? Give feedback.
-
My current workaround: I do not need those keys, I do not deploy them (they are not really sensitive), so I can just create them there. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Please reopen this issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Unstale. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
When I use
salt-ssh
withssh_use_home_key: True
set inmaster
configuration, I see thatsalt-ssh.rsa
andsalt-ssh.rsa.pub
are still created inside the pki directory, but not really used it seems. This is confusing. I would suggest that files are not created if not needed.Beta Was this translation helpful? Give feedback.
All reactions