Skip to content

Commit afa165c

Browse files
committed
DOC Add ssh config file
1 parent 95d8a15 commit afa165c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ to manage.
5555

5656
### SSH
5757

58+
- Config file - [.ssh/config](ssh/config)
5859
- [Prevent SSH Timeout](ssh/prevent-ssh-timeout.md)
5960
- [Using GIT+SSH over HTTPS](https://help.github.com/en/github/authenticating-to-github/using-ssh-over-the-https-port)
6061

ssh/config

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Prevent session timeout
2+
ServerAliveInterval 30
3+
4+
# Setup mac ssh keys; `UseKeychain` is only on macOS
5+
Host *
6+
AddKeysToAgent yes
7+
UseKeychain yes
8+
IdentityFile ~/.ssh/id_rsa
9+
10+
# Use HTTPS instead of SSH for git+ssh
11+
Host github.com
12+
Hostname ssh.github.com
13+
Port 443

0 commit comments

Comments
 (0)