Skip to content

Commit

Permalink
chore(ssh): Remove hard coded keys (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
  • Loading branch information
gaocegege authored May 9, 2022
1 parent 870cebd commit b95aee9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
7 changes: 0 additions & 7 deletions examples/ssh_keypairs/key.pem

This file was deleted.

1 change: 0 additions & 1 deletion examples/ssh_keypairs/public.pub

This file was deleted.

23 changes: 0 additions & 23 deletions pkg/remote/sshd/key.go

This file was deleted.

5 changes: 0 additions & 5 deletions pkg/remote/sshd/sshd.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ func (srv *Server) getServer() (*ssh.Server, error) {
},
}

err := server.SetOption(ssh.HostKeyPEM([]byte(hostKeyBytes)))
if err != nil {
return nil, err
}

if srv.AuthorizedKeys != nil {
server.PublicKeyHandler = srv.authorize
} else {
Expand Down

0 comments on commit b95aee9

Please sign in to comment.