@@ -0,0 +1,16 @@
|
||||
name: '⚙️ Configure SSH Client'
|
||||
description: 'Installs sshpass and configures known_hosts'
|
||||
|
||||
inputs:
|
||||
ssh_host:
|
||||
description: 'Remote server IP'
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y sshpass
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -p 22 "${{ inputs.ssh_host }}" >> ~/.ssh/known_hosts
|
||||
Reference in New Issue
Block a user