This shows you the differences between two versions of the page.
linux:ssh-without-password [2012-11-04 14:36] kokkez [7. Load the private key to the SSH agent on the local-host] |
linux:ssh-without-password [2012-11-04 14:43] (current) kokkez [3. Install public key on the remote-host] |
||
---|---|---|---|
Line 42: | Line 42: | ||
Copy the content of the public key from the local-host and paste it to the /home/jsmith/.ssh/authorized_keys on the remote-host. If the /home/jsmith/.ssh/authorized_keys already has some other public key, you can append this to the end of it. If the .ssh directory under your home directory on remote-host doesn’t exist, please create it. | Copy the content of the public key from the local-host and paste it to the /home/jsmith/.ssh/authorized_keys on the remote-host. If the /home/jsmith/.ssh/authorized_keys already has some other public key, you can append this to the end of it. If the .ssh directory under your home directory on remote-host doesn’t exist, please create it. | ||
- | [remote-host]$ vi ~/.ssh/authorized_keys | + | [remote-host]$ vi ~/.ssh/authorized_keys |
ssh-rsa ABIwAAAQEAzRPh9rWfjZ1+7Q369zsBEa7wS1RxzWR jsmith@local-host | ssh-rsa ABIwAAAQEAzRPh9rWfjZ1+7Q369zsBEa7wS1RxzWR jsmith@local-host | ||