This article relates to any new cloud VPS plan purchased after December 2023.
For security reasons SSH root access is disabled by default on our newer VPS plans.
Console access:
You can log in to the VPS via the console if you need under:
https://cp.blacknighthosting.com > Services > My Services > click on your VPS service > noVNC Console
If you wish to enable SSH access you need to do the following:
Unblock port 22 on your firewall:
- https://cp.blacknighthosting.com > Services > My Services > click on your VPS service > Firewall
- Click on the enable icon beside the SSH Access rule to enable the rule
NOTE: this enables SSH access in from everywhere to your VPS. We recommend editing the rule to restrict it to just specific IP addresses where possible.
Key access:
See here for how to add your public SSH key to the VPS
Otherwise you will need to enable remote root login with password. The steps for this depend on your operating system.
Password access:
If you are unfamiliar with SSH and\or any of the steps mentioned below then you might be better off sticking with the console for minor changes. Otherwise this is something your developer or whomever is managing the VPS should be doing.
- Edit the ssh config file and a cloud-init override file:
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config.d/10-override.conf
Comments
0 comments
Article is closed for comments.