When running an ARK node, especially a Delegate Node, you should consider your server’s security as your main priority.
During this guide, we will configure network and SSH parameters, which if improperly performed might permanently lock you out of your server. Ensure you fully understand each step before proceeding.
Edit Your SSH Config
sshd_config by running the following command.
1sudo nano /etc/ssh/sshd_config
1# What ports, IPs and protocols we listen for2Port 22
22 to a port of your choosing between
65535. This is the new SSH port we will connect on. Since we are not using the default SSH port, it is crucial you do not forget what you choose, or you will not be able to access your server.
From now on port 22 is not usable for SSH connections.
1# What ports, IPs and protocols we listen for2Port 55555
In the previous section, we had you create a new account for security purposes. You should never log in as root to your server after it has been set up. Our first security measure is going to be to disable root access altogether.
1# Authentication:2LoginGraceTime 1203PermitRootLogin yes4StrictModes yes
60 and set
1# Authentication:2LoginGraceTime 603PermitRootLogin no4StrictModes yes
Disable X11 Forwarding
1X11Forwarding yes2X11DisplayOffset 103PrintMotd no4PrintLastLog yes5TCPKeepAlive yes6#UseLogin no
Limit Max Concurrent Connections
Scroll down until you see the following line and uncomment
MaxStartups. Then set MaxStartups to
1#MaxStartups 10:30:602#Banner /etc/issue.net
1MaxStartups 22#Banner /etc/issue.net
Save Your Config File
CTRL+X to exit the file,
Y to save the file and then
Enter to write to the file and return to the command line.
Restart SSH Daemon
1sudo service ssh restart2exit
Test New SSH Connection
1ssh [email protected] -p 55555
If everything was setup successfully, you should be reconnected to your ARK node. Replace
55555 with the port you chose when setting up your