Here are the important steps summarized to enable standard account SSH access on your
Dedicated Server.
- First, generate SSH key pair for the account
- Open WHM on your DS and go to Account Functions > Modify an Account
- Now, activate SSH Access from the Shell Access check Box
- Login to your DS as root user via SSH
- Navigate to
home/ user/ .ssh folder cd /home/user/.ssh In this command, change username with the actual username of the account for which you want to allow SSH
- Enter the following Shell scripts
vi authorized_keysThe file will be opened in a text editor. Press i key from the keyboard to insert the text and paste the public key, which you have already generated.
Go to "Esc", type ":wq!" ( without the quotes) and press "Enter" to save the modified file - Execute the following command in the shell prompt:
iptables -I INPUT -s CustomerIP -p tcp --dport 18765 -j ACCEPTNow, change the CustomerIP with the IP of the computer which needs the SSH connection.
- Restart your firewall:
/etc/init.d/firewall restart
/etc/init.d/sshd restart