LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-19-2019, 04:22 AM   #16
Horus1
Member
 
Registered: Jul 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled

the output of
Code:
grep -i root /etc/ssh/ssh_config
is
Code:
PermitRootLogin yes
# the setting of "PermitRootLogin without-password".
 
Old 04-19-2019, 05:19 AM   #17
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
PermitRootLogin yes needs to be in /etc/ssh/sshd_config. /etc/ssh/ssh_config is the client configuration.
 
Old 04-20-2019, 04:17 AM   #18
Horus1
Member
 
Registered: Jul 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tyler2016 View Post
PermitRootLogin yes needs to be in /etc/ssh/sshd_config. /etc/ssh/ssh_config is the client configuration.
PermitRootLogin yes is already in /etc/ssh/sshd_config

PermitRootLogin yes
StrictModes yes
 
Old 04-23-2019, 07:55 AM   #19
Horus1
Member
 
Registered: Jul 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
The same issue still exists, proposals to resolve.
 
Old 04-23-2019, 09:22 AM   #20
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Horus1 View Post
proposals to resolve.
Debug options -vvv both on client and server sides.
 
Old 04-24-2019, 04:41 AM   #21
Horus1
Member
 
Registered: Jul 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks to all, I was changed the root password and I'm able to connect the remote host via ssh.
 
Old 04-24-2019, 04:45 AM   #22
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Remember that it is better practice to use keys and to turn off password authentication, especially for direct root acccess.

Code:
PermitRootLogin forced-commands-only
Or at least,

Code:
PermitRootLogin prohibit-password
See "man sshd_config"

Even better would be to work out a process by which you avoid logging in directly as root.
 
Old 04-24-2019, 04:51 AM   #23
Horus1
Member
 
Registered: Jul 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
Remember that it is better practice to use keys and to turn off password authentication, especially for direct root acccess.

Code:
PermitRootLogin forced-commands-only
Or at least,

Code:
PermitRootLogin prohibit-password
See "man sshd_config"

Even better would be to work out a process by which you avoid logging in directly as root.
I'll check it for sure. thanks
 
  


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
Work on a remote project with Eclipse via SSH and SVN+SSH (2 remote Linux) alwaystudent Linux - Software 5 08-12-2015 11:40 AM
[SOLVED] How to copy file from remote host to local host then delete from remote host legendmac Linux - Newbie 13 05-27-2015 03:47 PM
[SOLVED] how to connect a remote host via ssh behind proxy swaggerlee Linux - Newbie 29 06-07-2013 03:40 AM
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 01:51 PM
Able to connect via SSH but not able to connect via web port 80 Orange Sunshine Linux - Server 9 04-03-2010 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:29 PM.

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