SiteGround uses key-based authentication for SSH. This has proven more secure over standard username/password authentication. More information on SSH keys can be found here. You can generate an SSH key pair directly in cPanel, or you can generate the keys yourself and just upload the public one in cPanel to use with your hosting account.
- An SSH key consists of a pair of files. One is the private key, which you should never give to anyone. No one will ever ask you for it and if so, simply ignore them - they are trying to steal it. The other is the public key. When you generate your keys, you will use ssh-keygen to store the keys in a safe location so you can authenticate with.
- Use Keys, Not Passwords. Fortunately for us, SSH allows connections to be authenticated using keys. Key-based authentication is a huge improvement over a simple username and password combination. Instead of a password, you have a pair of matched keys: one public, and one private. Anyone with access to the public key can use it to encrypt.
- Aug 10, 2018 How to set up a public and private SSH key pair on a Mac. If you don’t see any keys in your SSH directory, then you can run the ssh-keygen command to generate one. Logging in Via SSH with a Key Pair with a Name Other than IDRSA. To do this, you run the ssh-keygen command, but instead of hitting the Enter key when asked to enter a.
Overview
Diablo 3 activate a game key generator. To use SSH keys on IU Sitehosting, follow the instructions for your OS. Mac terminal generate ssh key.
You should not manually edit your
authorized_keys
file in the .ssh
directory in your account. Any manual changes made to this file will be purged.Generate SSH keys on Linux/Mac
- Generate a public/private key pair:
- Log in to the computer you will use to access Sitehost, and then use the command line to generate a key pair. To generate RSA keys, on the command line, enter:
- You will be prompted to supply a filename (for saving the key pair) and a passphrase (for protecting your private key):
- Filename: To accept the default filename and location for your key pair, press
Enter
orReturn
without entering a filename. Alternatively, you can enter a filename (for example,my_ssh_key
) at the prompt, and then pressEnter
orReturn
. - Passphrase: Enter a passphrase that contains at least five characters, and then press
Enter
orReturn
. If you pressEnter
orReturn
without entering a passphrase, your private key will be generated without password protection.
- Filename: To accept the default filename and location for your key pair, press
- Once the key pair has been generated, navigate to the location where you saved the public key.
- Copy the contents of your public key (this is the file with the
.pub
extension). - Once you copy the contents of your public key, see Add a public key to IU Sitehosting below.
Generate SSH keys on Windows
- Install PuTTY. The PuTTY command-line SSH client, the PuTTYgen key generation utility, the Pageant SSH authentication agent, and the PuTTY SCP and SFTP utilities are packaged together in a Windows installer available under The MIT License for free download from the PuTTY development team.
- Launch PuTTYgen.
- In the 'PuTTY Key Generator' window, under 'Parameters':
- For 'Type of key to generate', select RSA. (In older versions of PuTTYgen, select SSH2-RSA.)
- For 'Number of bits in a generated key', leave the default value (
2048
).
- Under 'Actions', click Generate.
- When prompted, use your mouse (or trackpad) to move your cursor around the blank area under 'Key'; this generates randomness that PuTTYgen uses to generate your key pair.
- When your key pair is generated, PuTTYgen displays the public key in the area under 'Key'. In the 'Key passphrase' and 'Confirm passphrase' text boxes, enter a passphrase to passphrase-protect your private key.If you don't passphrase-protect your private key, anyone with access to your computer will be able to SSH (without being prompted for a passphrase) to your account on any remote system that has the corresponding public key.
- Right-click in the 'Public key for pasting into OpenSSH authorized_keys file' text box, choose Select All, and then right-click in the text box again and select Copy.
- Save your private key in a safe place. You'll use the passphrase any time you log into a Sitehost server using SSH keys, and you'll need to copy the public key to your profile on the WebTech website. To save your private key:
- Under 'Actions', next to 'Save the generated key', click Save private key.If you didn't passphrase-protect your private key, the utility will ask whether you're sure you want to save it without a passphrase. Click Yes to proceed or No to go back and create a passphrase for your private key.
- Keep 'Save as type' set to PuTTY Private Key Files (*.ppk), give the file a name (for example,
putty_private_key
), select a location on your computer to store it, and then click Save. - If you wish to connect to a remote desktop system such as Research Desktop (RED), click Conversions > Export OpenSSH key, give the file a name (for example,
putty_rsa
), select a location on your computer to store it, and then click Save.
- Under 'Actions', next to 'Save the generated key', click Save private key.
If you no longer have the public key, or if it is later determined to be invalid, use the following steps to obtain a public key:
![Key Key](/uploads/1/2/6/0/126081545/498623667.png)
- Launch PuTTYgen.
- Click Load.
- Navigate to your private key and click Open.
- In the PuTTYgen pop-up window, enter the passphrase.
- Right-click in the 'Public key for pasting into OpenSSH authorized_keys file' text box, choose Select All, and then right-click in the text box again and select Copy.
- Select File > Exit to close PuTTYgen.
Add a public key to IU Sitehosting
- Go to the IU Sitehosting account management.
- At the top right, click Sign in, and, if prompted, log in with your IU username and passphrase.
- At the top right, click your name. You'll be taken to the 'Manage your profile' page.
- Under 'Manage SSH keys':
- In the 'Note' field, enter a short description.
- In the 'Public Key' field, paste the public key you copied in step 7 above.
- Click Add. If the public key is valid, it will be added to your profile. Within 30 minutes, the public key will be added to all sitehost-test and sitehost accounts that you own, or for which you are a proxy or developer.