From charlesreid1

Revision as of 03:00, 31 March 2017 by Admin (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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