Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Actually i have to connect myself as an admin :

ssh user@xxx.xxx.xx.xx to log into the mac and then use "su" to be as root.

I can't connect myself directly as root! WHY?!?....

share|improve this question

You have got to edit /private/etc/sshd_config and remove the comment on the line:

PermitRootLogin yes

As well as having an active root account (which I suppose you already do.)

EDIT:

You should then uncomment this line on the server, probably at /etc/ssh/sshd_config, and restart sshd using /etc/rc.d/sshd restart.

For the sake of security, though, I would recommend you against this practice and in favor of using su or sudo instead once connected.

share|improve this answer
    
EH ! Thanks for your answer, but i didn't find the correct file :/ – Zell Jun 14 '13 at 9:52
    
Which version of OSX have you installed? It's kind of weird that you can't find that file, since its a unix standard. Take a look at /etc/sshd_config, just in case. – listik Jun 14 '13 at 10:13
    
Sorry I didn't precise ! Im trying to connect from My on 10.6.8 to a FreeBSD 8.3 machine – Zell Jun 14 '13 at 11:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .