This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined("WHMCS")) | |
die("This file cannot be accessed directly"); | |
function sendTelegramMessage($pm) { | |
global $vars; | |
//$chat_id = (""); //Group | |
$chat_id = (""); //Channel | |
$tokenbot = (""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Login to your server | |
### Create a root user password | |
sudo passwd root | |
### Choose a strong password!**** | |
### Lets Edit SSHD Config file | |
sudo nano /etc/ssh/sshd_config | |
### Remove the Comment (#) sign from Port and Enable the port | |
Port 22 | |
### Add below text inside the file (sshd_config) under "Authentication" block |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Lets Check that swap file is already created or not | |
htop | |
## Use F10 Key from your keyboard to quit the htop screen! | |
## Lets create Swap file | |
## Use only one section from below 01 and 02 sections (1GB, 2GB) | |
## 01 Section - For 1GB Swap, use below commands (Section 01) | |
sudo fallocate -l 1G /swapfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are three things to do to allow a 'service user' like www-data to login via ssh. | |
DISCLAIMER: | |
READ EVERYTHING BEFORE USE ANY COMMAND... OTHERWISE, YOU MIGHT LOSE ACCESS OF YOUR SERVER... | |
#Step 01 | |
######################## | |
#Use the below GIST and propely follow the command then come here and use below steps. | |
Link: https://gist.github.com/mhrubel/43825450cba521ede15d7b73cf865472 |
OlderNewer