Skip to content

Instantly share code, notes, and snippets.

@habibun
Created January 25, 2020 06:03
Show Gist options
  • Save habibun/c7678fdc52a57f6b7d472e6ee2512f1c to your computer and use it in GitHub Desktop.
Save habibun/c7678fdc52a57f6b7d472e6ee2512f1c to your computer and use it in GitHub Desktop.
ubuntu 18.04 remote root login
To list open ports use the netstat command:
netstat -tulpn | grep LISTEN
change config:
/etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 0.0.0.0
login mysql and run:
Grant All Privileges ON *.* to 'user'@'%' Identified By 'pass';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment