# Restrict SSH to rsync for deploying files with GitHub Actions

DevFeed: [Restrict SSH to rsync for deploying files with GitHub Actions](<https://devfeed.tech/articles/restrict-ssh-to-rsync-for-deploying-files-with-github-actions-29327.md>)

Original publisher: [Read original article](<https://www.schakko.de/2020/07/20/restrict-ssh-to-rsync-for-deploying-files-with-github-actions/>)

Author: Schakko

Published: 2020-07-20T07:32:08Z

Content type: tutorial

Language: en

Sources: [Schakko](<https://devfeed.tech/sources/schakko.md>)

Topics: [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [rsync](<https://devfeed.tech/topics/rsync.md>), [Security](<https://devfeed.tech/topics/security.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [public-key](<https://devfeed.tech/tags/public-key.md>), [rsync](<https://devfeed.tech/tags/rsync.md>), [security](<https://devfeed.tech/tags/security.md>), [ssh](<https://devfeed.tech/tags/ssh.md>)

## AI overview

This tutorial explains how to restrict rsync access over SSH when deploying a GitHub repository with GitHub Actions. It presents a custom SSH wrapper script and the official Perl-based rrsync script, including read-only or write-only restrictions for a specified directory.

## Source excerpt

rsync access can be restricted with a custom wrapper script or an official script named "rrsync". Access to your remote filesystem should always be restricted so you won't leak any information in case of a security breach. I've used GitHub Actions a lot in the last few months. For web [...] The post Restrict SSH to rsync for deploying files with GitHub Actions appeared first on schakko.de.