#!/bin/bash # # bash <(curl -L pomoc.mordae.eu) # sudo sed -re 's@.*(PasswordAuthentication).*@\1 yes@' -i /etc/ssh/sshd_config sudo sed -re 's@.*(PermitRootLogin).*@\1 yes@' -i /etc/ssh/sshd_config sudo systemctl enable --now sshd sudo systemctl restart sshd exec ssh \ -R 5900:localhost:5900 \ -R 2222:localhost:22 \ -oStrictHostKeyChecking=no \ pomoc@mordae.eu