Date: Mon, 02 Jan 2017 14:47:25 +0800 From: Ernie Luzar <luzar722@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: how to allow user toor login through ssh Message-ID: <5869F77D.5050106@gmail.com> In-Reply-To: <20170102024359.aa82ae3e.freebsd@edvax.de> References: <5869ADFB.6080000@gmail.com> <20170102024359.aa82ae3e.freebsd@edvax.de>
index | next in thread | previous in thread | raw e-mail
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@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 suggestionshome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5869F77D.5050106>
