Go4Hosting
https://go4hosting.in/forum/

How to Enable SSH for Dedicated Server on Mac OS?
https://go4hosting.in/forum/viewtopic.php?f=5&t=23603
Page 1 of 1

Author:  RishitSingh [ Wed Sep 02, 2015 4:27 pm ]
Post subject:  How to Enable SSH for Dedicated Server on Mac OS?

How to Enable SSH for Dedicated Server on Mac OS?

Author:  shellymaris [ Thu Sep 03, 2015 3:46 pm ]
Post subject:  Re: How to Enable SSH for Dedicated Server on Mac OS?

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:

user@localhost: 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:

user@localhost: 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:

user@localhost: 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.

Page 1 of 1 All times are UTC + 5:30 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/