mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
set uncloud group on the unix socket to allow configured non-root users to access it
This commit is contained in:
@@ -57,7 +57,11 @@ func (c *SSHConnector) Connect(ctx context.Context) (*grpc.ClientConn, error) {
|
||||
addr = strings.TrimPrefix(addr, "unix://")
|
||||
conn, dErr := c.client.DialContext(ctx, "unix", addr)
|
||||
if dErr != nil {
|
||||
return nil, fmt.Errorf("connect to machine API socket %s through SSH tunnel: %w", addr, dErr)
|
||||
return nil, fmt.Errorf(
|
||||
"connect to machine API socket %s through SSH tunnel (is the Uncloud daemon running "+
|
||||
"on the remote machine and does the SSH user have permissions to access the socket?): %w",
|
||||
addr, dErr,
|
||||
)
|
||||
}
|
||||
return conn, nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user