Skip to main content
Solved

[OT] SSH and CreateUserPkg

  • November 22, 2013
  • 2 replies
  • 11 views

ImAMacGuy
Forum|alt.badge.img+23

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.

Best answer by haircut

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`

2 replies

Forum|alt.badge.img+8
  • Contributor
  • 58 replies
  • Answer
  • November 22, 2013

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`

ImAMacGuy
Forum|alt.badge.img+23
  • Author
  • Esteemed Contributor
  • 1310 replies
  • November 22, 2013

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