You were looking into the wrong fiie for the PermitRootLogin directive. I have overseen this when I first replied to you. I am sorry :)
It is /etc/sshd_config not /etc/ssh_config. The first file configures the server, the second the cli client.
When you change it to yes, you may login as root providing username and password. Best security practice on the other hand is to use public/private key which is the without-password directive, esp. if ssh port is accessiable in public networks.
Best,
Tobias
Date: Wed, 3 Feb 2016 12:11:45 +0500
Subject: Re: root login in Jessie
From: sirtcp@gmail.com
To: tobias-weiss@outlook.comThanks for the response Tobias. i even restarted the machine. BTW just like to mention that i am using LXC virtual container. i think this should't be an issue here.Thanks,YousufOn Wed, Feb 3, 2016 at 11:47 AM, Tobias Weiß <tobias-weiss@outlook.com> wrote:
You probaly forgot to restart ssh after changing the config?
Best,
Date: Wed, 3 Feb 2016 11:43:40 +0500
Subject: root login in Jessie
From: sirtcp@gmail.com
To: debian-user@lists.debian.orgDear All,I have two machines for testing some services on jessie. however i can not allow access to root remote ssh.i have read this on saveral places that/etc/ssh/ssh_config has a line PermitRootLogin without-password which has to be change to yesfirst of all i can not find this line in whole file. however when i manually type this line it didn't workcan you guys please help.Thanks,Yousuf