Update start_ssh_server.sh

This commit is contained in:
Igor Malinovskiy
2015-02-12 18:03:50 +02:00
parent 5139bfd7ce
commit c445f2c2d3
+2
View File
@@ -8,6 +8,8 @@ echo test:test | chpasswd
sudo cp /etc/ssh/sshd_config /root/sshd_config
sudo bash -c "echo '' >> /root/sshd_config"
sudo bash -c "echo 'PasswordAuthentication yes' >> /root/sshd_config"
sudo bash -c "echo '' >> /root/sshd_config"
sudo bash -c "echo 'AllowUsers test' >> /root/sshd_config"
sudo sed -i "s/Port 22/Port 2222/g" /root/sshd_config
sudo sed -i "s/\/etc\/ssh\//~\//g" /root/sshd_config