Stunnel/Scp
From charlesreid1
This page covers a basic configuration for getting secure copy (SCP) working over an stunnel connection.
Overview
Setting up client
Setting up server
We want the stunnel server to listen over 443, and forward traffic to port 22 (scp uses same port as SSH).
Only thing different from Stunnel/SSH server config file is the protocol name:
# server config, # stunnel server will listen for stunnel clients connecting on port 443 # traffic will be decrypted and forwarded to local port 22 output = /var/log/stunnel4/stunnel.log cert = /etc/stunnel/stunnel.fullchain.pem key = /etc/stunnel/stunnel.key.pem pid = /var/run/stunnel4/stunnel.pid client = no [scp] accept = 443 connect = 127.0.0.1:22