From b09fe02173cac252a7859e83a3ecc8d6ad83f0cf Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 1 Sep 2018 00:16:19 -0400 Subject: [PATCH] Add 15x scripts --- sh/151-openvpn | 11 +++++++++++ sh/152-openssh | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 sh/151-openvpn create mode 100644 sh/152-openssh diff --git a/sh/151-openvpn b/sh/151-openvpn new file mode 100644 index 00000000..b097546b --- /dev/null +++ b/sh/151-openvpn @@ -0,0 +1,11 @@ +#!/bin/sh +# +# This script adds support for connecting to a VPN with OpenVPN. +# Alternatively, you can also use it as a server and host your +# own VPN. +# +# https://wiki.archlinux.org/index.php/OpenVPN + +set -xe + +pacman -S openvpn diff --git a/sh/152-openssh b/sh/152-openssh new file mode 100644 index 00000000..693a46cf --- /dev/null +++ b/sh/152-openssh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# OpenSSH is the standard SSH tool for both client side and +# server side operations. By default SSH servers listen on TCP +# port 22, but you should specify a high random number to prevent +# brute force attempts. +# +# To connect to a server, use: +# ssh -p port user@server-address +# +# Note that connecting via public-key authentication (i.e. SSH +# keys) is the standard. You should disable password logins +# entirely. +# +# To let other clients access your machine, enable the ssh +# daemon service: +# systemctl enable sshd.service +# +# If you let external computers access your machine through SSH, +# then you need to make sure to configure `/etc/ssh/sshd_config` +# appropriately. +# +# Note that `mosh` may also be a viable solution for certain +# use cases (note that it must be used with a terminal multiplexer +# like tmux for session history). +# +# If you want to SSH into your server with an internet hotspot that +# blocks anything except ports 80 / 443, you can use a server +# multiplexer like `sslh`. +# +# https://wiki.archlinux.org/index.php/Secure_Shell +# https://wiki.archlinux.org/index.php/SSH_keys +# https://wiki.archlinux.org/index.php/Port_knocking +# https://mosh.org/ +# https://www.rutschle.net/tech/sslh/README.html + +set -xe + +pacman -S openssh