User Tools

Site Tools


openssh_with_sctp_support

This is an old revision of the document!


OpenSSH with SCTP support

FreeBSD

# Download latest release

curl -O http://ftp.halifax.rwth-aachen.de/openbsd/OpenSSH/portable/openssh-5.9p1.tar.gz
tar xvfz openssh-5.9p1.tar.gz
cd openssh-5.9p1

# Download and apply SCTP patch

openssh-freebsd.patch

patch -p1 < openssh-freebsd.patch

# Autotools:

autoreconf -i -f

# configure with:

./configure --with-sctp

Mac OS X

# Download latest release

curl -O http://www.opensource.apple.com/tarballs/OpenSSH/OpenSSH-166.tar.gz
tar xvfz OpenSSH-166.tar.gz
cd OpenSSH-166/openssh

# Download and apply SCTP patch openssh-macosx.patch

patch -p1 < openssh-macosx.patch

# Autotools:

autoreconf -i -f

# For Snow Leopard configure with:

env LDFLAGS=-lresolv ./configure --sysconfdir="/etc" --disable-suid-ssh --with-ssl-dir=/usr/include/openssl --with-random=/dev/urandom --with-tcp-wrappers --with-pam --without-zlib-version-check --with-4in6 --with-audit=bsm CPPFLAGS="-D__APPLE_SACL__ -D_UTMPX_COMPAT -D__APPLE_UTMPX__ -DUSE_CCAPI -D__APPLE_LAUNCHD__ -D__APPLE_MEMBERSHIP__ -D__APPLE_SANDBOX_PRIVSEP_CHILDREN__ -D__APPLE_CROSS_REALM__ -D__APPLE_XSAN__" --with-keychain=apple --disable-libutil --disable-utmp --disable-wtmp --with-privsep-user=_sshd --with-sctp

# For Lion configure with:

env LDFLAGS=-lresolv ./configure --sysconfdir="/etc" --disable-suid-ssh --with-ssl-dir=/usr/include/openssl --with-random=/dev/urandom --with-tcp-wrappers --with-pam --without-zlib-version-check --with-4in6 --with-audit=bsm CPPFLAGS="-D__APPLE_SACL__ -D_UTMPX_COMPAT -D__APPLE_UTMPX__ -DUSE_CCAPI -D__APPLE_LAUNCHD__ -D__APPLE_MEMBERSHIP__ -D__APPLE_CROSS_REALM__ -D__APPLE_XSAN__" --with-keychain=apple --disable-libutil --disable-utmp --disable-wtmp --with-privsep-user=_sshd --with-sctp

Build & Run

# Compile

make

# Add SCTP to sshd_config (options: tcp, sctp, all)

Transport sctp

# Mac OS X: Start server on port 2222 (-d for debug mode, -4 for IPv4 only)

sudo $PWD/sshd -d -4 -f $PWD/sshd_config -h /private/etc/ssh_host_dsa_key -p 2222

# FreeBSD: Start server on port 2222 (-d for debug mode, -4 for IPv4 only)

sudo $PWD/sshd -d -4 -f $PWD/sshd_config -h /etc/ssh/ssh_host_dsa_key -p 2222

# Connect client (-z for SCTP)

./ssh -z -p 2222 127.0.0.1
openssh_with_sctp_support.1545305310.txt.gz · Last modified: by admin