Generate Key for Shell Access




Use Apple Terminal Program to Connect to SSH
* Login to your Terminal program. If you don't know how to do this, go the magnifying glass in the OS toolbar (usually at the top right - this is Spotlight) and type in "terminal". You should see Terminal appear as an application. Select it and it will launch. Note that if you are not logged into your Mac as the administrator you will not be able to make these changes. * Go to your desktop where you copied the ID_DSA file. The terminal command is: cd desktop* Make sure that the ID_DSA file is already on your desktop. Then type the following into your terminal:cp -frp id_dsa ~/.ssh This will copy the key into the .ssh folder.
- Next run the following command to add the identity to your computer.
- ssh-add -K id_dsa
You will then need to type in the password you used to generate the key in cPanel.
- You should see a confirmation that the identity has been added to your Mac. When this is complete, you will be able to use the SSH command to login to the server. The cPanel user name will need to be used along with the server name. The command will look like this:
ssh -p 2222 cpanelusername5@servername.inmotionhosting.com Here's an example: ssh -p 2222 user5@ecbiz188.inmotionhosting.com)* If this is the first time you have connected the server, you may see a message stating that it can't identity the server. Just click on "YES" to proceed (just make you're connecting to the right server). The password should automatically work and you should see the terminal connect. This completes the tutorial for creating a new SSH key to connect your Mac terminal program to the InMotion Hosting shared server SSH. For best security practices, make sure to keep your key private and don't share the password unless necessary.
Importante chmod 600 clave Para poder añadirla al llavero