shimataro / ssh-key-action

GitHub Action that installs SSH key to .ssh
https://github.com/marketplace/actions/install-ssh-key
MIT License
575 stars 86 forks source link

Syntax for known_hosts #265

Open RevealedFrom opened 11 months ago

RevealedFrom commented 11 months ago

I couldn't find documentation on the syntax used by known_hosts. What should the syntax be?

For the host I want to connect to, I have the following information (from WinSCP):

image

How should I code this into the known_hosts field?

Also, it says hosts, plural? Shouldn't it be just one host, the one I am trying to connect to?

ashellwig commented 11 months ago

Have you tried using ssh_keyscan on the host you're trying to reference..?