Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • macOS (local client) to RHEL (remote server)
  • RHEL (local client) to RHEL (remote server)

Some important points

  • You only have to exchange key once for all the servers that shared a central home directoryEach local home directory in a client only need one key pair generated.  This key pair can be used for multiple servers.
  • If all the servers mount a central network home you only need to exchange key with one server; only one exchange per server home directory.
  • If you have multiple server accounts you will have to add the key to each account’s authorized_keys file; you however can use the same id_rsa.pub public key from your client.You will have to do this from each of your client machine .
  • Each client requires an exchange and if you have multiple local accounts that you ssh from

    (rare)

    per client, each local account need to have

    this

    the exchange done.

KEY GENERATION - Generate a Public/Private Key Pair on the local client machine:

Open a Terminal window on your local machine and type the following:

...


Your public key has been saved in ~/.ssh/id_rsa.pub

KEY EXCHANGE - Transfer the Public Key to Remote Server

You now need to copy your public key to the machines that you want to SSH to. You must copy the public key to each remote machine.

...