• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2312
  • Last Modified:

Cannot telnet to new FreeBSD install as root

I have a new install of FreeBSD. I can telnet into it as a user but not as root. I get a "login incorrect" message. I can log in locally using the same id/password fine. Obviously I am new to FreeBSD and this is probably very simple. Thanks in advance for your help.
0
dnagmour
Asked:
dnagmour
  • 3
1 Solution
 
David PiniellaCommented:
freebsd doesn't allow telnet as root in by default, which is generally a good idea. I would suggest you SSH in if at all possible. Verify that root can ssh in by checking your sshd.conf (should have a line that says something like "allow root logins = YES")
0
 
David PiniellaCommented:
to expand on the previous: it's a security feature; since telnet is cleartext, your password can be sniffed. no root logins on telnet means that someone would have to get two passwords; a regular user and then the root password. if you MUST use telnet, telnet as the regular user and then su to root. if you want to login directly as root, use ssh and make sure you configure sshd to allow root logins.
0
 
David PiniellaCommented:
oh, the ssh file you have to change is /etc/ssh/sshd_config

you need to change the line that says
#PermitRootLogin no
to
PermitRootLogin yes

and then restart sshd (note that if you do this over the network while you're ssh'd in, you'll kill your connection :) )
0
 
dnagmourAuthor Commented:
Thanks for your help. I had tried earlier to su to root but was unsuccessful because I was not a member of the wheel group. Thanks again.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now