From 731020d2e401faa32d7812585c85a355bfc6711a Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Mon, 7 Dec 2020 17:22:08 +0100 Subject: [PATCH] docs(ubuntu): display ip of the server --- tools/ubuntu.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ubuntu.sh b/tools/ubuntu.sh index 093ebeb..821ec45 100644 --- a/tools/ubuntu.sh +++ b/tools/ubuntu.sh @@ -8,6 +8,7 @@ df -h # Check the amount of free space sudo ufw status # Check status sudo ufw allow from remote_IP_address to any port 3306 # Allow external ip to access port +sudo ufw allow from 68.183.116.178 to any port 3306 # Allow external ip to access port scp user@remote_host:remote_file local_file # download: remote -> local scp local_file user@remote_host:remote_file # upload: local -> remote @@ -15,3 +16,5 @@ scp local_file user@remote_host:remote_file # upload: local -> remote sudo -s # Log as root cat /proc//maps # Show the current virtual memory usage of a Linux process + +ip r # Display ip of the server