...
SSH to the remote machine:
Code Block ssh <username>@<remotemachine>
Then confirm the remote machine has a ".ssh" folder in your account's home directory:
Code Block ls -la ~
If it does not, create the .ssh folder:
Code Block mkdir ~/.ssh
Now copy your local public key to the remote machine:
Code Block scp ~/.ssh/id_rsa.pub <username>@<remotemachine>:~/.ssh/<hostmachinename><localmachinename>.pub
where <hostmachinename> will help identify the source of the public key.
Now SSH into the remote machine you have copied the file to, and cd to the .ssh directory in your home directory:
Code Block cd ~/.ssh
You'll see the <hostmachinename>.pub file you just copied over. Add its contents to a file named "authorized_keys":
Code Block cat ~/.ssh/<hostmachinename>.pub >> ~/.ssh/authorized_keys
Make sure that directory and it's files are only accessible by your account:
Code Block chmod 700 ~/.ssh chmod go-rwx ~/.ssh/*
Back on the local machine, test SSH:
Code Block ssh <username>@<remotemachine>
which should result in a login without a password.
- Repeat for every remote machine that does not have a centralized network home directory.