feat: wrap ssh with coder key (#894)

This commit is contained in:
Garrett Delfosse
2022-04-07 22:40:27 +00:00
committed by GitHub
parent b7d7e19606
commit 38f074254b
10 changed files with 302 additions and 41 deletions
+6
View File
@@ -104,6 +104,12 @@ func workspaceAgent() *cobra.Command {
}
}
cfg := createConfig(cmd)
err = cfg.AgentSession().Write(client.SessionToken)
if err != nil {
return xerrors.Errorf("writing agent session token to config: %w", err)
}
closer := agent.New(client.ListenWorkspaceAgent, &peer.ConnOptions{
Logger: logger,
})