Skip to content

Commit

Permalink
Remove authz file mount for SR Linux (#2254)
Browse files Browse the repository at this point in the history
remove authz file mount
  • Loading branch information
hellt authored Oct 23, 2024
1 parent 58293b3 commit b4da97c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions nodes/srl/srl.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,6 @@ func (s *srl) PreDeploy(_ context.Context, params *nodes.PreDeployParams) error
}
}

// mount authorized_keys file to enable passwordless login
authzKeysPath := params.TopoPaths.AuthorizedKeysFilename()
if utils.FileExists(authzKeysPath) {
s.Cfg.Binds = append(s.Cfg.Binds,
fmt.Sprint(authzKeysPath, ":/root/.ssh/authorized_keys:ro"),
fmt.Sprint(authzKeysPath, ":/home/linuxadmin/.ssh/authorized_keys:ro"),
fmt.Sprint(authzKeysPath, ":/home/admin/.ssh/authorized_keys:ro"),
)
}

// store provided pubkeys
s.sshPubKeys = params.SSHPubKeys

Expand Down

0 comments on commit b4da97c

Please sign in to comment.