[OT] SSH and CreateUserPkg

jwojda
Valued Contributor II

I created a user with teh createuserpkg app and found that everything works except I can't ssh into a box using that account. I can using our jss account - so I know ssh is working, but just not with that account.

1 ACCEPTED SOLUTION

haircut
Contributor

You need to specifically grant that account SSH access; it's not enabled by default unless you have globally allowed SSH access on the client.

You can run the following remotely to do this:

sudo dscl . append /Groups/com.apple.access_ssh user USERNAME
sudo dscl . append /Groups/com.apple.access_ssh groupmembers `dscl . read /Users/USERNAME GeneratedUID | cut -d " " -f 2`

View solution in original post

2 REPLIES 2

haircut
Contributor

You need to specifically grant that account SSH access; it's not enabled by default unless you have globally allowed SSH access on the client.

You can run the following remotely to do this:

sudo dscl . append /Groups/com.apple.access_ssh user USERNAME
sudo dscl . append /Groups/com.apple.access_ssh groupmembers `dscl . read /Users/USERNAME GeneratedUID | cut -d " " -f 2`

jwojda
Valued Contributor II

thank you! I added that to the First Boot script and now it works perfectly! Thank you!