Skip to content

Instantly share code, notes, and snippets.

@choyri
Last active October 26, 2019 05:12
Show Gist options
  • Select an option

  • Save choyri/8eddd07da36b6d04c8edfe56acddbb4a to your computer and use it in GitHub Desktop.

Select an option

Save choyri/8eddd07da36b6d04c8edfe56acddbb4a to your computer and use it in GitHub Desktop.
Debian 10 安装后的操作

SSH

vim /etc/ssh/sshd_config

修改如下:

PubkeyAuthentication yes
AuthorizedKeysFile  .ssh/authorized_keys
PermitRootLogin no
PasswordAuthentication no

BBR

sed -i '/net.core.default_qdisc/d' /etc/sysctl.conf
sed -i '/net.ipv4.tcp_congestion_control/d' /etc/sysctl.conf
echo "net.core.default_qdisc = fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control = bbr" >> /etc/sysctl.conf
sysctl -p

# 查看成效
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment