For cPanel version 11.38
(Home >> Security >> SSH/Shell Access
SSH (secure shell) and Telnet are examples of network protocols that make remote server management possible by allowing you to control another computer (ie, your web server) over the Internet through a command line interface (CLI). This can be used, for instance, when configuring CGI scripts. SSH is included with many modern operating systems including Mac® OS X and Linux distributions.
If you are using Microsoft Windows to connect to your server, you will need an SSH client to log into the server. One can be obtained at http://www.chiark.greenend.org.uk/~sgtatham/putty/
For Unix-based operating systems, such as Mac OS or Linux, many commands have been standardized. For a list of standardized Unix-based (POSIX) commands, consult your favorite search engine or visit http://www.one-serve.com/tools/unix_commands.php
Not all web hosts allow shell access.
Connecting With PuTTy
To use PuTTy to connect to your server via SSH:
- Download and install the client from the URL above.
- Open the client.
- Under the Sessions menu, input the IP address of the server.
- Make sure that the SSH button is selected.
- Click Open.
- Use root as the login name.
- Enter the root password.
If the username and password were correctly entered, you should be logged into the server.
Connecting With Mac OS X or Linux
To connect via SSH to your server:
- Open a terminal session.
- Issue the following command:
ssh -p $port $user@$IP
- Where $port is meant to stand for the port number.
- $user is meant to stand for your username.
- $IP is meant to stand for your IP address.
Manage SSH Keys
Using cPanel, it is possible to create, import, manage, and remove SSH keys. These keys will be used when confirming a specific computer has the right to access your website’s information using SSH.
Generate a New Key
To generate a new key:
- Click Manage SSH Keys.
- Click the Generate a new Key icon.
- Fill in the appropriate information.
- Note: You should consider your needs when choosing a key type, bearing in mind that RSA keys yield a faster confirmation of identity, while using DSA keys will speed up key generation and signing times.
- Click Generate Key to generate the new SSH key and automatically install it to the server.
Import an Existing Key
To import an existing key:
- Click the Import Key icon.
- Choose a name for the key.
- Paste the private and public keys into the 2 text boxes.
- Click Import.
Delete a Key
To delete a key:
- Click Delete next to the corresponding key in the appropriate table. You will be directed to a new page.
- Click Delete Key to confirm deletion.
View or Download a Key
To view or download a key:
- Click View/Download next to the corresponding key in the appropriate table. You will be directed to a new page.
- Click Download Key to download the key. You can also copy the key and save it on your computer.
When you click View/Download
in the Private Keys
table, you also have the option to convert the key into
To convert a private key and save it onto the server:
- Enter the key's passphrase into the box.
- Click Convert. You will be directed to a new page.
- Note: At this point, the
.ppk key file is saved on the server as
$file is the name of the original SSH key).
- Click Download Key to download the converted key to your desktop.
Manage a Key's Authorization
To authorize or deauthorize a key:
- Click Manage Authorization next to the corresponding key in the appropriate table. You will be directed to a new page.
- Click Authorize or Deauthorize.
You may only authorize or deauthorize public keys on your web server. As long as the public key is deauthorized, a user will not be able to log in using the corresponding private key.
Connect Using SSHTerm
cPanel comes equipped with an application called SSHTerm, which lets you connect to your website using SSH through cPanel.
SSHTerm is a Java application that opens a command line interface (CLI) in an application window within the browser.
To connect via SSHTerm using a username and password:
- Click Connect using SSHTerm.
- If cPanel prompts you to accept a certificate, do so. The application will load after a few moments.
- Within the SSHTerm window, select File > New Connection.
- Enter the web server’s IP address.
- Click Advanced.
- Enter the username in the Username field.
- Select password under the Authentication Methods heading.
- Note: You can also select publickey to authenticate using a public key.
- Click Connect.
- Enter the username and password.
- Click Ok.
Connect Using Java Telnet Applet
cPanel contains a Java application called Java Telnet Applet, which lets you connect to your website using a Telnet connection through cPanel.
To connect via Java Telnet Applet:
- Click Connect using Java Telnet Applet.
- A pop-up window containing the Applet will open. Another pop-up, requesting login information, will also open. Enter your username and password.
- Click Login.
- Note: You cannot use keys as an authentication method. You must use a username and password.
There are a number of specific Telnet commands with which you may need to familiarize yourself. Please consult your favorite search engine for more information regarding Telnet and your operating system’s commands. We also recommend that you use SSH in place of Telnet when possible, since an SSH connection is inherently more secure.