Sha256: 55f8a3ef031701d007ac298154ad1a3bb1512eefad65d4149882c09355d501f1

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

#!/bin/bash

set -e

export DEBIAN_FRONTEND=noninteractive
apt -y update

# Create `deployer` user that can sudo without a password
apt-get -y install sudo
adduser --disabled-password deployer < /dev/null
echo "deployer:topsecret" | chpasswd
echo "deployer ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

# Install and configure sshd
apt-get -y install openssh-server
{
  echo "Port 22"
  echo "PasswordAuthentication yes"
  echo "ChallengeResponseAuthentication no"
} >> /etc/ssh/sshd_config
mkdir /var/run/sshd
chmod 0755 /var/run/sshd

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sshkit-1.23.2 .docker/ubuntu_setup.sh
sshkit-1.23.1 .docker/ubuntu_setup.sh
sshkit-1.23.0 .docker/ubuntu_setup.sh