LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 08:00 AM   #1
Bashed
Member
 
Registered: Jul 2015
Posts: 133

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, 11:10 AM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

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, 11:16 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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


Reply



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 12:15 PM
root won't use bash as login shell moob8 Linux - Software 9 10-28-2008 10:15 PM
New virtual consoles won't accept root login swamp Slackware 2 08-31-2006 07:06 PM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
KDM won't let non-root users login mngmd Linux - Software 2 01-15-2006 04:14 AM

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

All times are GMT -5. The time now is 02:33 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
Open Source Consulting | Domain Registration