summaryrefslogtreecommitdiff
path: root/vimwiki/Set up passwordless SSH.md
diff options
context:
space:
mode:
authorVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
committerVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
commit3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch)
tree2116c49a845dfc0945778f2aa3e2118d72be428b /vimwiki/Set up passwordless SSH.md
parent8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff)
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to 'vimwiki/Set up passwordless SSH.md')
-rw-r--r--vimwiki/Set up passwordless SSH.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/vimwiki/Set up passwordless SSH.md b/vimwiki/Set up passwordless SSH.md
new file mode 100644
index 0000000..d3dc53c
--- /dev/null
+++ b/vimwiki/Set up passwordless SSH.md
@@ -0,0 +1,25 @@
+
+##SSH Passwordless Login using Keygen##
+
+1. _Create authentication ssh-keygen keys on local machine_
+
+ `$ ssh-keygen -t rsa`
+
+ This creates two key files in your .ssh directory,
+ one private and one public, id_rsa and id_rsa.pub respectively.
+
+2. _Create .ssh directory on remote machine_
+
+ `$ ssh user@remote mkdir -p ~/.ssh`
+
+3. _Upload the generated public key to remote machine_
+
+ `$ cat ~/.ssh/id_rsa.pub | ssh user@remote 'cat >> ~/.ssh/authorized_keys'`
+
+4. _Set permissions on remote machine_
+
+ `$ ssh user@remote "chmod 700 ~/ssh ; chmod 640 ~/.ssh/authorized_keys"`
+
+5. _Login to remote machine without password_
+
+ `ssh user@remote`