We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3153a61 commit 67652f4Copy full SHA for 67652f4
ssh/ssh.go
@@ -101,31 +101,6 @@ func (r *Agent) Add(id *api.Identity, host string) (err error) {
101
if err != nil {
102
return
103
}
104
- cmd = command.New("/usr/bin/ssh-keyscan")
105
- cmd.Options.Add(host)
106
- err = cmd.Run()
107
- if err != nil {
108
- return
109
- }
110
- known := "/etc/ssh/ssh_known_hosts"
111
- f, err = os.OpenFile(
112
- known, os.O_RDWR|os.O_APPEND|os.O_CREATE,
113
- 0600)
114
115
- err = liberr.Wrap(
116
- err,
117
- "path",
118
- path)
119
120
121
- _, err = f.Write(cmd.Output())
122
123
124
125
126
127
128
- _ = f.Close()
129
addon.Activity("[FILE] Created %s.", path)
130
131
0 commit comments