book000/SSH over WireGuard

Establish secure encrypted connection to remote server via WireGuard VPN and execute SSH commands or SCP file transfers

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 10, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: book000/ssh-over-wireguard@c036c3655ef32223910497ef51ff305797735868 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
operationOperation type: ssh (execute command) or scp (file transfer)nossh
commandCommand to execute on the remote server (only used when operation=ssh)nohostname && whoami && pwd
scp-sourceSource path for SCP operation (only used when operation=scp)no
scp-destinationDestination path for SCP operation (only used when operation=scp)no
scp-directionSCP direction: upload (local to remote) or download (remote to local) (only used when operation=scp)noupload
ping-checkEnable ping connectivity test before SSH/SCP operationsnotrue
wireguard-private-keyWireGuard client private keyyes
wireguard-addressWireGuard client VPN address (e.g., 10.0.0.2/24)yes
wireguard-dnsDNS server address (e.g., 1.1.1.1)no1.1.1.1
wireguard-peer-public-keyWireGuard server public keyyes
wireguard-preshared-keyWireGuard preshared key (optional security enhancement)no
wireguard-endpointWireGuard server endpoint (e.g., server.com:51820)yes
wireguard-allowed-ipsAllowed IPs for WireGuard (e.g., 10.0.0.0/24)yes
ssh-private-keySSH private key for authenticationyes
ssh-userSSH usernameyes
ssh-hostnameSSH hostname alias for connectionyes
ssh-host-ipSSH server IP address within VPNyes
ssh-host-keySSH server host key for verificationyes
ssh-portSSH port numberno22

no outputs