dotfiles/gui/sshd.sh
2020-11-09 00:26:14 +08:00

22 lines
322 B
Bash

#!/bin/sh
DIR=$(dirname "$(readlink -f "$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