#!/bin/bashsudo apt-get install openssh-server -ysudo sed -i ‘s/without-password/yes/g‘ /etc/ssh/sshd_config
卸載的腳本
#!/bin/bashsudo stop sshdsudo apt-get remove openssh-server --purge -y
ubuntu 安裝openssh 腳本
原文:http://www.cnblogs.com/psd2012/p/4783294.html