servidores/server_v2.sh

40 lines
1.0 KiB
Bash

#server.sh v2
# func. ssh
> check port 8462
/etc/ssh/sshd_config:
#Port 22 > Port 8462
#PermitRootLogin prohibit-password > PermitRootLogin no
_apt() {
deb http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free
deb http://security.debian.org/debian-security bookworm-security main non-free-firmware contrib non-free
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware contrib non-free
deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware contrib non-free
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware contrib non-free
}
_util() {
apt install -y firmware-linux firmware-linux-free \
firmware-linux-nonfree bash-completion net-tools \
nftables traceroute tcptraceroute htop iotop curl \
wget iptraf-ng apt-transport-https rsyslog mtr-tiny \
sudo whois ethtool
}
_bashrc() {
}
_motd() {
}
_teccnia() {
}
## Execução do script