SSH Related Questions (12 Articles)

How to log in to my SiteGround shared account via SSH in Linux?

First you should generate an SSH key pair on your Linux distribution . Alternatively, you can generate the SSH keys through your cPanel-> SSH/Shell access section. There you should enter the passphrase and get the private key. Then you should load your private SSH key using the following command: user@localhost: ssh-add / home/user / .ssh/id_dsa Enter passphrase for id_dsa: Identity added: id_dsa (id_dsa) (The passphrase is the same as the one you have set during the generation of the SSH key.) Then you should initiate an SSH connection: user@localhost: ssh USER@HOST_NAME -pPORT USER - the user for which you want to establish the SSH connection; this will be the same username as the one you use to log in to your cPanel. HOST_NAME (or IP address) - here you should enter the host/IP of the server to which you wish to connect (e.g. siteground300.com); PORT - the port for the connection - here you should enter 18765 ; Press "Enter" and if everything has been set up properly, you will establish an SSH connection to your account. The  SSH/Shell access  feature is available free of charge for all SiteGround hosting accounts by default. If you need SSH access to your account but your current host does not allow it, you can check our SSH web hosting package . SiteGround has long experience with various SSH issues and our support team will gladly help you with any SSH-related questions/problems you may…

How to log in to my SiteGround shared account via SSH using PuTTY?

Please note that due to our security policy, we don't use the default SSH port. Please use port 18765 to connect via SSH. If you have an  SSH key , you have to load it using the pageant.exe program which can be downloaded from this URL . Alternatively, you can generate the SSH keys through your cPanel-> SSH/Shell access section. There you should enter the passphrase and get the private key which should be loaded in PuTTYgen . Save the private key in a new file. Launch puttygen.exe and navigate to File -> Load Private Key . Browse for your private key file. Open it and enter the passphrase. You will get a confirmation message saying " Successfully imported foreign key... ". Click on the Save private key button. Save the file in the Putty Private Key File format (*.ppk). After the pageant.exe download, start the program and load your private key in it. If you have generated your key with a passphrase, you will be asked for it. Then you should start putty.exe and enter the connection details in the Session category: Host Name (or IP address) - here you should enter the host/IP to which you wish to connect; Port - the port for the connection - here you should type 18765 ; Protocol - here you should select SSH; Once you enter the correct details, click on Open to establish the connection. You will be asked for a username; once you type it, you will log in your account via SSH. The SSH/Shell access feature is available free of charge for all SiteGround hosting accounts by default.  If your current host does not allow SSH access to your hosting account, you can check our web hosting package. SiteGround has long experience with various SSH issues and our support team will gladly help you with any SSH-related questions/problems you may…

How to log in to my Cloud hosting/VDS via SSH using PuTTY?

The following instructions are valid only for SiteGround customers. If you are not a SiteGround customer, you can check our general SSH instructions for more information on how to connect to an account via SSH. If you have an SSH key , you have to load it using the pageant.exe program which can be downloaded from this URL . After the pageant.exe download, start the program and load your private key in it. If you have generated your key with a passphrase, you will be asked for it. Then you should start putty.exe and enter the connection details in the Session category: - Host Name (or IP address) - here you should enter the host/IP to which you wish to connect; - Port - the port for the connection - here you should type 18765 ; - Protocol - here you should select SSH ; Once you enter the correct details, click on Open to establish the connection. You will be asked for a username; once you type it, you will log in your account via SSH.…

How to Enable SSH for Cloud VPS on Windows

You can establish an SSH connection using the PuTTY SSH client . You can download PuTTY for free from this URL . First, make sure that the SSH option is enabled for the corresponding VPS account. Detailed instructions can be found in the SiteGround WHM tutorial . The SSH keys should be generated and converted with puttygen.exe as explained in the SiteGround SSH tutorial. Next you will have to load the private key you have already converted. You can do so via pageant.exe program which can be downloaded from this URL . If you have generated your key with a passphrase, you will be asked for it. Then you start putty.exe and enter the connection details in the Session category: - Host Name (or IP address) - here you should enter the host/IP of your VPS. - Port - the port for the connection - Protocol - you should select SSH Enter the details and click on Open to establish the connection. You will be asked for a username. This is the same as your cPanel username. Enter it and you will be logged in using the SSH key pair.…

How to Enable SSH for Cloud VPS on Linux

First you need to generate SSH key pair for your connection. Under Linux you can do so using the ssh-keygen command. You should run it in the command line. You will be asked for a file where the key should be saved to and for a passphrase (password) for the key. Here is an example: user@localhost: ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/user/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in id_dsa. Your public key has been saved in id_dsa.pub. The key fingerprint is: 16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost This will create a private key written to /home/user/.ssh/ id_dsa and a public key written to /home/user/.ssh/ id_dsa.pub . The passphrase is used to protect your key. You will be asked for it when you connect via SSH.   You should load your private SSH key using the following command: user@localhost: ssh-add /home/user/.ssh/id_dsa Enter passphrase for id_dsa: Identity added: id_dsa (id_dsa) (The passphrase is the same as the one you have set during the generation of the SSH key.) Before proceeding with the SSH connection make sure that the SSH option is enabled for the corresponding VPS account and the SSH keys are loaded on the server. Detailed instructions can be found in the SiteGround WHM tutorial . Now you are ready to initiate an SSH connection: user@localhost: ssh <USER>@<HOSTNAME> -p<PORT> - <USER> – the user for which you want to establish the SSH connection. This is the same as your cPanel username. - <HOSTNAME> (or IP address) - here you should enter the host/IP of your VPS. - <PORT> - the port for the connection Press "Enter" and if everything has been set up properly, you will establish an SSH connection to your account.…

SSH and SSH Keys

SSH (Secure Shell) is a network protocol that allows secure remote access over an encrypted connection. Through an SSH connection you can easily manage your files and folders, modify their permissions, edit files directly on the server, etc. SSH provides several types of authentication, including password and key-based authentication. Key-based authentication is a very secure authentication method and it is recommended over password-based authentication which can be brute-forced. Key-based authentication utilizes cryptographic keys to establish a trust relationship between server and client. Key-based authentication can require a passphrase (password) or can function without a passphrase on the key. To use this type of authentication, you have to generate an SSH key pair. The key pair consists of a public and a private key. The public key is kept on the server, while the private key is kept on your computer. When you connect via SSH, a trust relationship between your computer and the server is established using the key pair. If any of the keys is missing or there is a discrepancy between the keys, a connection cannot be established. Information on how to generate the key pair depending on your OS can be found in the following articles: How to generate an SSH key pair in Windows How to generate an SSH key pair in Linux How to generate an SSH key pair in MacOS Information on how to connect via SSH can be found in the following articles: How to connect via SSH in Windows using PuTTY How to connect via SSH in Linux How to connect via SSH in MacOS …

How to log in to an account via SSH in Linux?

All you need to do to initiate an SSH connection in Linux is open a shell prompt and execute the following command : user@localhost: ssh USER@HOST_NAME -pPORT - USER - the user for which you want to establish the SSH connection. If your account is hosted by SiteGround, this will be the same username as the one you use to log in to your cPanel; - HOST_NAME (or IP address) - here you should enter the host/IP of the server to which you wish to connect; - PORT - the port for the connection; Press "Enter" and if everything has been set up properly, you will establish an SSH connection to your account. SiteGround customers can find more information on how to log in to cloud/dedicated server accounts at the links below: How to log in to my SiteGround shared account via SSH in Linux? How to log in to my Cloud hosting/VDS via SSH in Linux? How to log in to my dedicated server via SSH in Linux? …

How to log in to my account via SSH using PuTTY?

PuTTY is a popular choice for a Windows SSH client. It is reliable, easy to use and free (open source). In this article we will describe a very basic PuTTY usage for larger audience. If you are a SiteGround customer , check the links below for specific information on how to connect to your account via SSH: How to log in to my SiteGround shared account via SSH using PuTTY How to log in to my Cloud hosting/VDS via SSH using PuTTY How to log in to my dedicated server via SSH using PuTTY Here are the general steps you need to take to use PuTTY: 1. Install PuTTY and run it. 2. Specify the hostname or IP address for your server and hit 'open' to initiate the connection. You can leave all options to default. If this is the first time to connect to the server, you will have to accept its SSH certificate. 3. Specify root (if you are the administrator for this server) or your username. 4. Specify your password. The above steps would allow you to log in an SSH server with a default setup. However, it is very insecure and your host is exposed to serious risks. To make it more secure we at Siteground have made additional tweaks such as changing the default SSH port, substituting password authorization with keys and many others. Thus, if you are looking for a secure and reliable host, you can check our SSH hosting …

How to Generate SSH Key in Linux?

To generate SSH key in Linux using the ssh-keygen command. You should run it in the command line. You will be asked for a file in which the key should be saved to and for a passphrase (password) for the key: user@localhost: ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/user/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in id_dsa. Your public key has been saved in id_dsa.pub. The key fingerprint is: 16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost This will create a private key written to /home/user/.ssh/ id_dsa and a public key written to /home/user/.ssh/ id_dsa.pub . The passphrase is used to protect your key. You will be asked for it when you connect via…

How to generate an SSH key on Windows using PuTTY?

You can generate an SSH key on Windows using the PuTTY SSH client . You can download PuTTY for free from this URL . To generate a key with PuTTY, you should: 1. Download and start the puttygen.exe generator. 2. In the "Parameters" section choose SSH2 DSA and press Generate . 3. Move your mouse randomly in the small screen in order to generate the key pairs. 4. Enter a key comment, which will identify the key (useful when you use several SSH keys). 5. Type in the passphrase and confirm it. The passphrase is used to protect your key. You will be asked for it when you connect via SSH. 6. Click "Save private key" to save your private key. 7. Click "Save public key" to save your public key. For more information on how to load the key and connect via SSH using PuTTY, please check this article .…

How do I activate SSH access for my account?

SiteGround offers SSH access on all hosting sollutions - shared accounts, Cloud hosting/VDS and dedicated servers. More information on how to use SSH on the different solutions can be found below: Shared hosting/Semi-dedicated accounts: How to log in to my SiteGround shared account via SSH using PuTTY? How to log in to my SiteGround shared account via SSH in Linux? How to log in to my SiteGround shared account via SSH in Mac OS? Cloud VPS: How to Enable SSH for Cloud VPS on Windows How to Enable SSH for Cloud VPS on Linux How to Enable SSH for Cloud VPS on Mac OS Dedicated servers: How to log in to my dedicated server via SSH using PuTTY? How to log in to my dedicated server via SSH in Linux? How to log in to my dedicated server via SSH in Mac OS? To make SSH access as secure as possible, SiteGround has made additional tweaks such as changing the default SSH port, substituting password authorization with keys and many others. Thus, if you are looking for a secure and reliable SSH host, please check SiteGround's SSH hosting …