mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: wrap ssh with coder key (#894)
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user