#!/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
时间: 2024-10-08 10:16:44
#!/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