This shows you the differences between two versions of the page.
linux:ssh-without-password [2012-11-04 14:35] kokkez |
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 | ||
Line 89: | Line 89: | ||
ssh-add -D: Delete all key | ssh-add -D: Delete all key | ||
- | 8. Perform SSH or SCP to remote-home from local-host without entering the password. | + | ==== 8. Perform SSH or SCP to remote-home from local-host without entering the password == |
- | + | ||
- | [local-host]$<You are on local-host here> | + | |
+ | [local-host]$<You are on local-host here> | ||
+ | |||
[local-host]$ ssh -l jsmith remote-host | [local-host]$ ssh -l jsmith remote-host | ||
Last login: Sat Jun 07 2008 23:03:04 -0700 from 192.168.1.102 | Last login: Sat Jun 07 2008 23:03:04 -0700 from 192.168.1.102 |