Skip to main content
Solved

[OT] SSH and CreateUserPkg

  • November 22, 2013
  • 2 replies
  • 0 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`
View original
Did this topic help you find an answer to your question?

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!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings