Skip to content

Commit

Permalink
Restart sshd in deploy script (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Jan 3, 2024
1 parent 9f19a9e commit f76930a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deploy/setup
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ esac

touch ~/.hushlogin

sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config

mkdir -p \
/etc/systemd/system/bitcoind.service.d \
/etc/systemd/system/ord.service.d
Expand Down Expand Up @@ -62,6 +60,10 @@ ufw allow http
ufw allow https
ufw allow ssh

sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sshd -t
systemctl restart sshd

case $CHAIN in
main)
ufw allow 8333
Expand Down

0 comments on commit f76930a

Please sign in to comment.