We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit f567490Copy full SHA for f567490
.gitignore
@@ -0,0 +1 @@
1
+*~
bash.md
@@ -0,0 +1,20 @@
+Basics on SSH
2
+=============
3
+Generate our key on the local machine:
4
+
5
+* ssh-keygen [params for algo] ~/.ssh/name-of-key
6
7
+Use the key:
8
9
+* ssh-agent $SHELL
10
+* ssh-add
11
+* ssh-add -L (to list used keys)
12
13
+Add our pubkey to the remote machine:
14
15
+* ssh-copy-id -i USERNAME@HOSTNAME (if using key)
16
+* ssh-copy-id -i ~/.ssh/name-of-key USERNAME@HOSTNAME (if not)
17
+* ssh USERNAME@HOSTNAME (to test that password isn't asked)
18
19
+*If it fails, make sure to chmod +755 ~/.ssh and authorized\_keys on the remote machine.*
20
0 commit comments