-
This commit is contained in:
13
ssh/How to ssh to localhost without password.md
Normal file
13
ssh/How to ssh to localhost without password.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# How to ssh to localhost without password
|
||||||
|
|
||||||
|
I did following 3 steps to create the password less login
|
||||||
|
|
||||||
|
1. `ssh-keygen -t rsa`
|
||||||
|
Press enter for each line
|
||||||
|
2. `cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys`
|
||||||
|
3. `chmod og-wx ~/.ssh/authorized_keys`
|
||||||
|
|
||||||
|
## Note
|
||||||
|
|
||||||
|
If your `~/.ssh/authorized_keys` was already existing and had correct permissions, (3.) is not needed, but also does no harm.
|
||||||
|
|
||||||
Reference in New Issue
Block a user