mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-22 00:29:37 +01:00
TIL: Using a public key to login
This commit is contained in:
parent
48074f4ba8
commit
0de2bb0d65
13
ssh/using_a_public_key_to_login.md
Normal file
13
ssh/using_a_public_key_to_login.md
Normal file
@ -0,0 +1,13 @@
|
||||
You can generate authentication keys and use it with ssh to login. First run the below command if you don't have any (it won't overwrite if you already have one):
|
||||
|
||||
```
|
||||
ssh-keygen
|
||||
```
|
||||
|
||||
Then copy your public key to remote server with this:
|
||||
```
|
||||
ssh-copy-id name@host
|
||||
```
|
||||
|
||||
From now on, you should be able to login with `ssh name@host` without having to enter your password.
|
||||
|
Loading…
Reference in New Issue
Block a user