Tutorials and How-tos/Connect via SSH without Password

From BubbaWiki
Jump to navigation Jump to search

Typing the password every time you connect to your B3 server via SSH can quickly become a nuisance. Fortunately, you can fix this problem by generating an SSH key on your client machine and then copying the key to the server.

First step is to generate the key. To do this, launch the terminal on your machine and run the following command:

 ssh-keygen -t dsa

Accept the default values and do not enter any password when prompted.

Once the key is generated, copy it to the B3 server using the command below (replace USER with the actual user name and HOST with the IP address of your server):

 ssh-copy-id -i .ssh/id_dsa.pub USER@HOST

That's all there is to it. Now you can establish an SSH connection to the server without providing the password.