how to allow user toor login through ssh

Ernie Luzar luzar722 at gmail.com
Mon Jan 2 06:47:18 UTC 2017


Polytropon wrote:
> On Mon, 02 Jan 2017 09:33:47 +0800, Ernie Luzar wrote:
>> how to allow user toor login through ssh?
> 
> It should be sufficient to _enable_ the "toor" user by providing
> him a login shell (use "chsh toor") and a password (use "passwd
> toor"). An additional setting for sshd is not needed because
> toor is treated as a regular user (not "root" which per default
> cannot connect directly per SSH). If possible, check a local
> login first to make sure everything works as intended. You
> should then be able to connect via "ssh toor at foo.example.com".
> 
> 

I did not delete toor and then recreate it. I just modified what was 
there in the base system with this script.

#! /bin/sh
pw moduser toor  -d /root -s /bin/csh -h 0 << EOD
j722
EOD

Using putty from remote location I connect to the host ok, but toor 
login fails with denied message. For user name I use toor ie; no 
@domain. Remote putty ssh does work using other account names only.

When pc is on the LAN can access ftp using toor. Never tested ssh toor 
from LAN.

Any suggestions









More information about the freebsd-questions mailing list