The Issue of the Day Before

去掉空白行

  • 有非空白以外的字元才處理

awk NF <file>

  • 有空白字元也算空白行

awk /./ <file>

使用 password 登入 SSH

sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

sudo systemctl restart sshd.service