Skip to content

Commit 2bac0ca

Browse files
author
Matthias Walter
committedSep 15, 2017
[TASK] add KnownHosts reference to .ssh/config and empty known_hosts
1 parent dffef65 commit 2bac0ca

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
 

‎.ssh/config

+4
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,25 @@ Host web01
33
User admin
44
Hostname __ADD_HOSTNAME__
55
IdentityFile ~/.ssh/__ADD_NAMESPACE__/id_rsa
6+
UserKnownHostsFile .ssh/known_hosts
67

78
# admin01
89
Host admin01
910
User admin
1011
Hostname __ADD_HOSTNAME__
1112
IdentityFile ~/.ssh/__ADD_NAMESPACE__/id_rsa
13+
UserKnownHostsFile .ssh/known_hosts
1214

1315
# db01
1416
Host db01
1517
User admin
1618
Hostname __ADD_HOSTNAME__
1719
IdentityFile ~/.ssh/__ADD_NAMESPACE__/id_rsa
20+
UserKnownHostsFile .ssh/known_hosts
1821

1922
# staging
2023
Host staging
2124
User admin
2225
Hostname __ADD_HOSTNAME__
2326
IdentityFile ~/.ssh/__ADD_NAMESPACE__/id_rsa
27+
UserKnownHostsFile .ssh/known_hosts

‎.ssh/known_hosts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add Known Hosts

0 commit comments

Comments
 (0)
Please sign in to comment.