ssh_without_a_password_using_public_private_keys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ssh_without_a_password_using_public_private_keys [2009/02/12 11:43] – juckins | ssh_without_a_password_using_public_private_keys [2025/06/08 14:51] (current) – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======SSH / rysnc without password====== | + | ==== SSH / rysnc without password ==== |
- | make sure the same versions of ssh are on both machines | + | |
- | need to configure client (machine connecting from) and server (machine connecting to) \\ | + | Make sure the same versions of ssh are on both machines. \\ |
- | on client: | + | You need to configure |
+ | On client, create | ||
< | < | ||
cd ~/.ssh | cd ~/.ssh | ||
+ | ssh-keygen -t ecdsa -f ~/ | ||
ssh-keygen -t rsa -f ~/ | ssh-keygen -t rsa -f ~/ | ||
ssh-keygen -t dsa -f ~/ | ssh-keygen -t dsa -f ~/ | ||
</ | </ | ||
- | this creates | + | This creates |
+ | |||
+ | From the client, copy the ssh public keys to the server using the following: | ||
+ | |||
+ | ssh-copy-id username@remote_host | ||
+ | |||
+ | Follow the prompts. | ||
- | on server: \\ | + | To do this process manually |
< | < | ||
cd ~/.ssh/ | cd ~/.ssh/ | ||
</ | </ | ||
- | vi authorized_keys2 | + | vi authorized_keys |
- | copy the id_dsa.pub and id_rsa.pub from client into authorized_keys file \\ | + | Copy the id_dsa.pub and id_rsa.pub from client into authorized_keys file \\ |
- | make sure permissions | + | Make sure permissions |
Also: | Also: | ||
< | < | ||
Line 31: | Line 39: | ||
</ | </ | ||
- | Or for Red Hat systems: | + | Or for RedHat |
< | < | ||
service sshd restart | service sshd restart | ||
</ | </ |
ssh_without_a_password_using_public_private_keys.1234456994.txt.gz · Last modified: by juckins