Skip to content

Commit 99bd897

Browse files
author
Vitor Mattos
committed
Remove references to id_rsa from host machine
1 parent cf66ff9 commit 99bd897

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

packer/README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,3 @@ Todo processo de criação foi abstraido pelo script [`build.sh`](build.sh)
1515
```
1616

1717
> A unica imagem disponível no momento é a imagem base.
18-
19-
## Public and Private Keys
20-
21-
DISABLED
22-
23-
```
24-
ssh-keygen -C "[email protected]" -t rsa -f ./id_rsa
25-
```
26-
27-
### Public Key
28-
29-
DISABLED
30-
31-
```
32-
ssh-rsa ... [email protected]
33-
```

packer/base/build.pkr.hcl

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ build {
77
sources = [
88
"files/nginx",
99
"files/setup.sh",
10-
"files/banner",
11-
// "files/id_rsa.tar.xz"
10+
"files/banner"
1211
]
1312
}
1413

1514
provisioner "shell" {
1615
inline = [
1716
"echo '@> 🗄️ Files...'",
18-
// "tar -xf /tmp/id_rsa.tar.xz -C $HOME/.ssh/",
1917
"mkdir -p /app/html",
2018
"cp -v /tmp/setup.sh /app/setup.sh",
2119
"cp -v -r /tmp/nginx/html /app/",
@@ -34,16 +32,6 @@ build {
3432
"ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts",
3533
"ssh-keyscan -t rsa bitbucket.org >> $HOME/.ssh/known_hosts",
3634
"ssh-keyscan -t rsa gitlab.com >> $HOME/.ssh/known_hosts",
37-
// "chmod 700 $HOME/.ssh",
38-
// "chmod 600 $HOME/.ssh/config",
39-
// "chmod 644 $HOME/.ssh/known_hosts",
40-
// "chmod 644 $HOME/.ssh/authorized_keys",
41-
// "chmod 600 $HOME/.ssh/id_rsa",
42-
// "chmod 644 $HOME/.ssh/id_rsa.pub",
43-
// "chown $USER:$USER $HOME/.ssh/",
44-
// "chown $USER:$USER $HOME/.ssh/*",
45-
// "ssh-keygen -l -f $HOME/.ssh/known_hosts",
46-
// "eval `ssh-agent` && ssh-add",
4735
"echo '@> end'"
4836
]
4937
}

0 commit comments

Comments
 (0)