diff --git a/ssh/How to ssh to localhost without password.md b/ssh/How to ssh to localhost without password.md new file mode 100644 index 0000000..0f66cfa --- /dev/null +++ b/ssh/How to ssh to localhost without password.md @@ -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. + \ No newline at end of file