dotfiles/gui/sshd.sh

22 lines
318 B
Bash
Executable File

#!/bin/bash
DIR=$(readlink -f $(dirname $0))
. $DIR/../env.sh
# install sshd
case "$PM" in
apt)
sudo apt install \
openssh-server
;;
pacman)
sudo pacman -S --needed \
openssh
;;
esac
# start network
sudo systemctl enable ssh
sudo systemctl start ssh