Introduction
Steps to connect to your server as a cPanel user via SSH can be found in this article.
Procedure
First, ensure the user you'd like to utilize has either Jailed or Normal shell access. "No Shell" cannot be utilized when attempting to create an SSH session.
How do I change an account's shell?
To connect to your server via SSH, perform the following steps:
- Open a new Terminal or Command Prompt
- Run "ssh -p $PORT $USER@$IP" where "$PORT" represents the port number, "$USER" represents your username, and "$IP" represents your IP address.
- If presented with the option to "accept a fingerprint" enter "yes" and press "Enter."
- Type the user's password--no output will be presented as you type--then press "Enter."
An example of the above command would be:
ssh -p 2211 cpaneluser@10.0.10.10
cPanel supports using SSH keys, which can be generated with the "ssh-keygen" command. The public key can be added to your user via "cPanel / Security / SSH Access / Manage SSH Keys."
To authenticate with a key, add "-i ./path/to/private/key" to your SSH command:
ssh -p 2211 -i ./path/to/private/key cpaneluser@10.0.10.10
Windows may not have this application enabled by default. To enable SSH on Windows, search for "Turn Windows Features on and off" in the Start Menu, then ensure "SSH Client" is enabled.
Comments
0 comments
Article is closed for comments.