Skip to content
Discussion options

You must be logged in to vote

Default ssh keys doesn't have a passphrase, I'm not sure if sshd supports it, at least directly, I haven't find any option after a quick look to man sshd_config. An agent can be used, to hold those keys, but it's not the most common scenario.

My recommendation is to remove the password from those keys, or sign a new key without a password. One way to do it is to sign an existing sshd public key:

step ssh certificate --sign --host hostname /etc/ssh/ssh_host_ecdsa_key.pub

And to generate one without a password:

step ssh certificate --host --no-password --insecure hostname /etc/ssh/ssh_my_key_name

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@moranbw
Comment options

@maraino
Comment options

@moranbw
Comment options

Answer selected by moranbw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants