Skip to content

Instantly share code, notes, and snippets.

@proller
Last active December 4, 2018 19:20
Show Gist options
  • Select an option

  • Save proller/22597d546615eed04ec1 to your computer and use it in GitHub Desktop.

Select an option

Save proller/22597d546615eed04ec1 to your computer and use it in GitHub Desktop.
ssh with sctp install on linux
# curl https://gist.githubusercontent.com/proller/22597d546615eed04ec1/raw/e3f454e516335cd7adb37418a2b8ede524a41da1/gistfile1.sh | sh
# sudo apt-get -y install libsctp-dev libssl-dev autoconf
v=openssh-7.5p1
p=extra-patch-sctp
wget -O $v.tar.gz http://ftp.eu.openbsd.org/pub/OpenBSD/OpenSSH/portable/$v.tar.gz -O $v.tar.gz
wget https://raw.githubusercontent.com/freebsd/freebsd-ports/master/security/openssh-portable/files/$p -O $p
tar -xzf $v.tar.gz
cat $p | patch -d $v
cd $v
autoconf
autoheader
sh configure --prefix=/usr/local --with-sctp
nice make -j $(nproc || sysctl -n hw.ncpu || echo 2)
# sudo make install
# echo "UserKnownHostsFile known_hosts_sctp" >> /usr/local/etc/ssh_config
# sudo sh -c 'echo "net.sctp.addip_enable=1\nnet.sctp.auth_enable=1\nnet.sctp.default_auto_asconf=1" >> /etc/sysctl.d/99-sctp.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment