Skip to content

Commit f567490

Browse files
committed
Some stuff on SSH
0 parents  commit f567490

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*~

bash.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
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

Comments
 (0)