mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-28 11:06:37 +08:00
Update start_ssh_server.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user