Files
spark/tools/setup_ssh.sh
T

10 lines
384 B
Bash

#!/bin/bash
sudo apt-get install --yes openssh-server nano
sudo sed -i '/# PasswordAuthentication yes/c\PasswordAuthentication yes' /etc/ssh/ssh_config
sudo sed -i '/# Port 22/c\Port 22' /etc/ssh/ssh_config
sudo service ssh start
#adduser --quiet --disabled-password --shell /bin/bash --home /home/bts --gecos "BTS" bts
#echo "bts:BT5u53r" | chpasswd
#sudo usermod -aG sudo bts