dotfiles/gui/sshd.sh

22 lines
322 B
Bash
Raw Normal View History

2020-11-02 04:08:18 +00:00
#!/bin/sh
2020-11-08 16:26:14 +00:00
DIR=$(dirname "$(readlink -f "$0")")
2020-11-02 04:08:18 +00:00
. "$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