Customer Support

  1. Support
  2. How can I add an ssh key to my Linux server if I have a Mac or Linux operating system?
  1. Home
  2. myTophost Panel
  3. Management
  4. How can I add an ssh key to my Linux server if I have a Mac or Linux operating system?
  1. Home
  2. myTophost Panel
  3. How can I add an ssh key to my Linux server if I have a Mac or Linux operating system?

How can I add an ssh key to my Linux server if I have a Mac or Linux operating system?

This specific procedure describes the steps you need to follow in case you have requested the activation of specific services from the Monitoring Pack you selected for your Linux Dedicated server.

To complete the Managed Services activation process, we will need to access your server to install the necessary monitoring tools.

To be able to connect to your server, you will need to add an ssh key following the steps described below.

If you have a Mac or Linux operating system, then open Terminal by selecting Menu >> All Applications >> Terminal.

To connect to your server run the following command and press Enter:

ssh root@1.1.1.1 (where 1.1.1.1 fill in the IP of your server)

Then you will be asked for the password, which you can find in the request sent to you when activating the server.

Once connected to the dedicated server, to add the ssh key the commands that must be executed are:

mkdir -p ~/.ssh/
chmod 700 ~/.ssh/

echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDDOfU0iJD74pPWNeoKIhB44Fn6/4SlZhw1gLAokjB4D0Lkhat+Xo6Qh5O5

oDkKe0x54+1DlKtI/nhSHdIvNeWIMvAN6QsnVav8Z7jxnSZcjOFmAGWf0NFDJuRWFd0RGkNG6P0xtednlXFbnkHtBzcH

NdncUiGpvDmTt4CBgqbIvY2ltdtZ9fA8MR+J7uGesMUPYcjARn4RiDAqk43k5HU+PERcPDViy40K5a7TR9eVwK+7QOD

/mLsG5Kgvl2r3L+RxcTuoocHNijqHZBjraZr2euKen04XItGVhV2RX/+Xj4Zsc1LXsSBWWoDPdK3AWIbCk/Mi97j9PLylME

snu+UKe5JiT/e8stSa+yCK3NNTVKqL0T1e8p01i60Uniw+jH1JAw1c1gtoXkocBvusHPj0K9AYl2+lZXWYwtPge7jBRTXtz

7ZtrjWpu9P1tYBc6hg8DL/Y6lWGtDXmTJnlQ0P4CMp/A2LmUvENZLRSFCvU7flCz/SZfLoYAHVXGXhm9c6OxqP+9ou5

iiuE++oxdQjJfleKaXcaHhMYNIcYygUI5Sx4I4SUzlMNKJvPRxEef997l3JwH1VN1WSat1lgLcbTJXD2ZCFajA/sV71CvhM

VMkmOSBCSQMIAO3mZbgE5hR65APaYFd8Qk4aiLwlmlPYJ03NCSPDm+oePc9TOlPOKYw== support@enartia.com" >>~/.ssh/authorized_keys

chmod 600 ~/.ssh/authorized_keys


You haven't found what you are looking for?

Contact our experts, they will be happy to help!

Contact us