> ## Content Index
> Fetch the complete content index at: https://bioinformatics.ghost.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Setting up ssh keys
- URL: https://bioinformatics.ghost.io/remember-servers-password-on-local/
- Published: 2018-01-17T01:05:27.000Z
- Updated: 2018-01-17T01:05:27.000Z
- Author: Aarthi Ramakrishnan
- Tags: #Import 2026-08-27 15:34

It is annoying to have to enter the password of a server each time you try to log in. You can set up ssh keys to avoid this:

1. On your local machine, type the following:

```bash
ssh-keygen -t rsa

```

When prompted for the filename to save the key in, hit enter. This will save the rsa key pair to a default file 'id\_rsa'. When prompted for the password, hit enter (to leave it blank). Hit enter again to repeat the password.

The above step should be done only once on your local machine.

1. Once the key's image is generated, type the following:

```bash
ssh-copy-id username@server

```

For example, in my case it was

```bash
ssh-copy-id ramaka02@minerva.hpc.mssm.edu

```

Type the password for the server one last time, and you're all set! Next time, you will not be prompted for a password.

- To set up ssh key for another server, start from Step 2.