Wrong ssh settings for new site #415

Closed
opened 2026-04-05 20:27:46 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @iwex on 4/18/2023

CloudPanel version(s) affected

2.2.2

Description

When you create a new site - cloudpanel automatically creates a new user.
After I tried to connect using this user I got an error - Permission denied (publickey).
From ssh logs Authentication refused: bad ownership or modes for directory /home/mysite

How to reproduce

  1. Create a new site
  2. Try to ssh with a new user

Possible Solution

chmod go-w /home/mysite

Additional Context

No response

*Originally created by @iwex on 4/18/2023* ### CloudPanel version(s) affected 2.2.2 ### Description When you create a new site - cloudpanel automatically creates a new user. After I tried to connect using this user I got an error - `Permission denied (publickey)`. From ssh logs `Authentication refused: bad ownership or modes for directory /home/mysite` ### How to reproduce 1) Create a new site 2) Try to ssh with a new user ### Possible Solution chmod go-w /home/mysite ### Additional Context _No response_
Sign in to join this conversation.