{"repo":"kielabokkie/ssh-key-and-known-hosts-action","free":true,"listed":false,"github":"https://github.com/kielabokkie/ssh-key-and-known-hosts-action","clone":"git clone https://github.com/kielabokkie/ssh-key-and-known-hosts-action.git","description":"Setup private key and add host to known hosts","language":"JavaScript","stars":36,"topics":["hacktoberfest","ssh","action","github-actions"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Setup SSH Github Action This action adds a SSH key and adds a given hostname or IP address to the known hosts file for external server access. It was heavily inspired by atymic/deployer-php-action. You can run this action before copying files to an external server using scp or rsync for example. Sponsor me Did this action spark joy, or you find it useful? Please consider sponsoring me via GitHub Sponsors. Thanks! Inputs Input Required Description --------------------- -------- ---------------------------------------------------------------------------------- ssh-private-key Yes Private key required to access the host. ssh-host Yes Hostname or IP address of the server you want to access. ssh-port Optional Port for used for SSH on the host server (port 22 by default). ssh-keyscan-timeout Optional Timeout for the ssh-keyscan command (default is 5 seconds). ssh-socket Optional The unix file socket that the agent uses for communication with other processes. Example usage Just the required inputs: If your SSH port is different from the default you can change it: If you need to increase the timeout for the ssh-keyscan command you can do that as well: If you are using this action on concurrent builds the ssh-socket should be unique to prevent address in use issues:","default_branch":null,"files":null,"tree":[],"storefront":"/r/kielabokkie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kielabokkie/ssh-key-and-known-hosts-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}