ubuntu 安裝openssh 腳本

#!/bin/bash
sudo apt-get install openssh-server -y
sudo sed -i 's/without-password/yes/g' /etc/ssh/sshd_config

卸載的腳本

#!/bin/bash
sudo stop sshd
sudo apt-get remove openssh-server --purge -y

原文地址:https://www.cnblogs.com/psd2012/p/4783294.html