Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# #############################################################################
# Create new SSH user (Ubuntu)
# I use this script whenever I need to add a new SSH user to an Ubuntu machine.
# Usage:
# 1) Download the "raw" with - wget -O createNewSSHUser.sh https://gist.github.com/raw/4223476
# 2) Make it executable with - chmod a+x createNewSSHUser.sh
# 3) Uncomment the last line and edit the user & pwd values
# 4) Execute it with : sudo ./createNewSSHUser.sh