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.
Note: Not all web hosts allow shell access.
- Connecting With PuTTy
- Connecting With Mac OS X or Linux
- Manage SSH Keys
- Generate a New Key
- Import an Existing Key
- Delete a Key
- View, Edit, or Download a Key
- Manage a Key's Authorization
- Connect Using SSHTerm
- Connect Using Java Telnet Applet
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.
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.
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.
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.
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.
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.
To view, edit, or download a key:
- Click View/Download next to the corresponding key in the appropriate table. You will be directed to a new page.
- Edit the key in the text box or click Download Key to download the key.
Note: 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
.ppkkey file is saved on the server as
$fileis the name of the original SSH key).
- Click Download Key to download the converted key to your desktop.
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.
Important: 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.
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.
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.
Note: 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.
Was this answer helpful?
The SSL and TLS features are intended to make your website more secure. These features generate...
Password protecting a directory restricts access to certain parts of your website by requiring...
A hotlink occurs when content from your site is embedded on another site, using your bandwidth to...
Leeching occurs when users publicly post their username and password to a restricted area of...
GnuPG keys use the “public key approach” to encryption. Messages are sent once they...