Knowledge Base Article

How to enable standard account SSH access on a dedicated server?

If you want to allow an SSH access for a standard account on your Dedicated server follow the steps listed in this article:

1. First you should generate an SSH key pair for the account. More information on how to do this is available in the following articles:


2. Open WHM on your DS and navigate to Account Functions > Modify an Account.

3. Activate SSH access through the Shell Access check box.

4. Log in to your DS as root via SSH.

5. Navigate to /home/user/.ssh folder:

 

cd  /home/user/.ssh


(Change user with the actual username of the account for which you want to allow SSH.)

6. Enter the following shell command:

 

vi authorized_keys


The file will be opened in a text editor. Press the "i" key on your keyboard in order to start inserting text and paste the public SSH key which you have already generated.

Click "Esc", type ":wq!" (without the quotes) and press "Enter" to save the modified file.

7. Execute the following command in the shell prompt:

 

iptables -I INPUT -s CustomerIP -p tcp --dport 18765 -j ACCEPT


Change CustomerIP with the IP of the computer which needs the SSH connection.

8. Restart your firewall and SSH services:

 

/etc/init.d/firewall restart
/etc/init.d/sshd restart


Rating

Please indicate if this article was helpful for you.

rating :  0.0 from 5
views :  246
votes :  0

Related Articles

Views

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!