LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-07-2017, 09:00 AM   #1
Bashed
Member
 
Registered: Jul 2015
Posts: 79

Rep: Reputation: Disabled
FreeBSD 11 won't allow root login


Installed FreeBSD 11 and added an additional "user" with it's pw. Set root pw during install. I can get the ssh login prompt on the IP but it demands password authentication key?

The server has disconnected with an error. Server message reads:
A protocol error occurred. Change of username or service not allowed: (root,ssh-connection) -> (steve,ssh-connection) . I edited /etc/ssh/sshd_config to change PermitRootLogin to "yes" and rebooted box (actually, first restarted sshd, didn't work and then rebooted server). Still does not work on user steve nor root. What gives?

Quote:
The server has disconnected with an error. Server message reads:

A protocol error occurred. Change of username or service not allowed: (root,ssh-connection) -> (steve,ssh-connection)
 
Old 12-09-2017, 12:10 PM   #2
orbea
Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 793

Rep: Reputation: Disabled
It is not very good practice to ssh into a remote server as root. I suggest you ssh as a non-privileged user and then su - to get root.
 
Old 12-09-2017, 12:16 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,153

Rep: Reputation: Disabled
Use keys, no password authentication at all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't login neither as root or user. It won't let me login at all Teenna Debian 6 11-30-2008 01:15 PM
root won't use bash as login shell moob8 Linux - Software 9 10-28-2008 11:15 PM
New virtual consoles won't accept root login swamp Slackware 2 08-31-2006 08:06 PM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 04:44 AM
KDM won't let non-root users login mngmd Linux - Software 2 01-15-2006 05:14 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration