Skip to content

Instantly share code, notes, and snippets.

@gwsu2008
Created January 31, 2020 22:57
Show Gist options
  • Save gwsu2008/4ee2db00baabd63ea6b46f4119d572ed to your computer and use it in GitHub Desktop.
Save gwsu2008/4ee2db00baabd63ea6b46f4119d572ed to your computer and use it in GitHub Desktop.
ssh-keygen overwrite without prompt
ssh-keygen -o -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' 2>/dev/null <<< y >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment