[email protected] +91-120-6025102


Go4hosting offers top-notch services, such as dedicated server hosting, VPS hosting, Co- location,Web hosting,
Email hosting, and Cloud Computing solutions. All the services offered by Go4hosting are efficient, reliable,
andcost-effective. , remaining essentially unchanged.

It is currently Thu Apr 02, 2020 1:23 am

All times are UTC + 5:30 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Sep 02, 2015 4:27 pm 

Joined: Wed Sep 02, 2015 4:21 pm
Posts: 7
How to Enable SSH for Dedicated Server on Mac OS?

PostPosted: Thu Sep 03, 2015 3:46 pm 

Joined: Mon Aug 17, 2015 12:00 pm
Posts: 3
In the first, you need to generate SSH key pair for your connection. Next, under the Mac OS you can do so by executing the ssh-keygen command. You should run this command in the command line. Here you will be asked for a file where the key should be saved to and the password for the key. For instance:

[email protected]: ssh-keygen -t dsa
Generating public/private dsa key pair
Enter the file in which key to be saved i.e. (/Users/user/.ssh/id_dsa): id_dsa
Enter the password
Re-enter the password again
Your identification has been saved in id_dsa
Your public key has been saved in id_dsa.pub

This command will generate a private key written to ~/.ssh/id_dsa and public key written to ~/.ssh/id_dsa.pub. The password is used to protect your keys. You will need this when you connect via SSH. Keep in mind that IP address through which you have taken your Dedicated Server was automatically added in the server firewall.

Access from your IP address should be permitted for the SSH port on the server. You can request this by raising a ticket. Once you have generated the public and private SSH keys, you should add the public key through your WHM (Web Host Manager).

To accomplish this, login to your server’s WHM panel and go to Manage SSH keys. You can find this at Security section. Click the Import Key button and enter the name and password for the key and paste your Public key in the respective field. Don’t paste your private key here. Click Import to import your key.

Now, you will be able to connect your Dedicated Server via SSH. You should load the private SSH keys by executing the below listed commands:

[email protected]: ssh-add id_dsa
Enter passphrase for id_dsa:
Identity added: id_dsa (id_dsa)

Once you entered the password, you can initiate an SSH connection:

[email protected]: ssh <USER>@<HOSTNAME> -p<PORT>
USER> – root – the user for which you want to create the SSH connection;
<HOSTNAME> (or IP address) – Here, you can enter the hostname/IP of the Dedicated Server;
PORT> - port used for the connection;

Now, press enter key to establish the SSH connection to your account.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 5:30 hours

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: