Can't login as a root via SSH!

Shane Ambler FreeBSD at ShaneWare.Biz
Mon Feb 2 04:42:26 UTC 2015


On 02/02/2015 14:13, jd1008 wrote:
>
> On 02/01/2015 08:21 PM, williamyun7 wrote:
>> which file should i look up?
>>
>> this is /etc/defaults/rc.conf
>>
>> i can't find any with root login via ssh from here.
>
> in /etc/ssh/sshd-config
>
> what do you see for root???
>

Just curious with root ssh access, what I have been using is to create
/root/.ssh/config and enter

HOST <HOSTNAME>
IdentityFile /home/<USER>/.ssh/id_rsa

then as root using `ssh <USER>@<HOSTNAME>`

Well technically it's cron doing rsync to trigger the ssh connection,
but this causes root to initiate ssh using my user account keys.

Is this method considered OK or is it a security issue?

-- 
FreeBSD - the place to B...Software Developing

Shane Ambler



More information about the freebsd-questions mailing list