28 lines
937 B
Plaintext
28 lines
937 B
Plaintext
sed -i 's/#Port 22/Port 48952/g' /etc/ssh/sshd_config
|
|
rc-service sshd restart
|
|
ssh -p 48952 root@autorizacion.saludut.com
|
|
apk add nginx certbot certbot-nginx nftables rsync
|
|
|
|
#Ejecutar publishNftables.sh
|
|
head -n1 ./scripts/publishNftables.sh | cat -A
|
|
sed -i 's/\r$//' ./scripts/publishNftables.sh
|
|
sed -i '1s|^.*$|#!/usr/bin/env bash|' ./scripts/publishNftables.sh
|
|
chmod +x ./scripts/publishNftables.sh
|
|
file ./scripts/publishNftables.sh
|
|
bash ./scripts/publishNftables.sh
|
|
|
|
#Ejecutar publish.sh
|
|
head -n1 ./scripts/publish.sh | cat -A
|
|
sed -i 's/\r$//' ./scripts/publish.sh
|
|
sed -i '1s|^.*$|#!/usr/bin/env bash|' ./scripts/publish.sh
|
|
chmod +x ./scripts/publish.sh
|
|
file ./scripts/publish.sh
|
|
bash ./scripts/publish.sh
|
|
|
|
#Ejecutar el nginx de autorizacion.saludut.com
|
|
scp -P 48952 scripts/vhost/autorizacion.saludut.com.conf root@autorizacion.saludut.com:/etc/nginx/http.d/
|
|
rc-service nginx start
|
|
sudo certbot --nginx -d autorizacion.saludut.com
|
|
|
|
|