From owner-freebsd-questions@freebsd.org Mon Jan 2 06:47:18 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92DF5C9BC8E for ; Mon, 2 Jan 2017 06:47:18 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59D5019CD for ; Mon, 2 Jan 2017 06:47:18 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-pf0-x242.google.com with SMTP id i88so24134069pfk.2 for ; Sun, 01 Jan 2017 22:47:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=H3DMbZxrSxOaKK6xMtKGOVHEXFlRCJ0BXarQwhhCVxg=; b=GS6CwCAhrZWp0mmsmDP/wULkMAmI40/l6WSw7Anm2To5dY76RgHWPhGKMXdj67sWSc tc1dDC1smTIXeRd39qKGBlGOXp/x7f98mAlAqWtVgLUySOhR/nX1dLY9CJtIu/fXa0z0 reB3K/9hfMqw2q5bzapwraPFdGnZqVl2BmZzRBfSF/T5H2ZXVp0IMkXfxR7/pAYKOY9a KemqI0EVMQxqp39TH2jNy4VEMMl24fIwLVOsNk83n1p46Gl1QxFol8rk+EiTOPZBKq8e VdohLsgWrw5DvDoAuxXEzySZ7igQV+WpVxcv7MPPndNuW6DGkDt5RRfipyynK4eZNvcy i30g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=H3DMbZxrSxOaKK6xMtKGOVHEXFlRCJ0BXarQwhhCVxg=; b=RgnSBB23VQLQGUn6Dc+yK0D6/Ipoe9Hd5sADrNuQW8sQxHuifPf2aUrDTsB3tpqMTY PjV6E+AwgMkuKetgXkLefHUw8Qai+Z1bIOquYDI6AT3tfenw4WAnbaR6/jL/WDa/G4fJ xgmFSRv7sdas8HmB1mwTuUa9t1I3lajWDjXgOgx/52YFIAKyX+fGd5cXkjivwNJvNUB6 bgkRopQhzW0iVlRzjASXFbgnT8sTuLHeLa73/rMZ1GxoY7gmq39+H5JJi1zNrfttRNNn AlwwoAjtqzfqUu86+9+W5p5egER6itXtDnIjp56hjpIq/qkYjjDV60HbuZpeDprlwj4O ZBBQ== X-Gm-Message-State: AIkVDXJa0BctptBBz4yKE/UtpGjKbnCAj1c8dudeNBV3sATgNaU0n0JDHGGmeqkMc8lBlw== X-Received: by 10.84.133.99 with SMTP id 90mr123078390plf.151.1483339637930; Sun, 01 Jan 2017 22:47:17 -0800 (PST) Received: from [192.168.1.103] ([120.29.76.197]) by smtp.googlemail.com with ESMTPSA id s136sm68817704pgs.46.2017.01.01.22.47.16 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 Jan 2017 22:47:17 -0800 (PST) Message-ID: <5869F77D.5050106@gmail.com> Date: Mon, 02 Jan 2017 14:47:25 +0800 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Polytropon CC: freebsd-questions@freebsd.org Subject: Re: how to allow user toor login through ssh References: <5869ADFB.6080000@gmail.com> <20170102024359.aa82ae3e.freebsd@edvax.de> In-Reply-To: <20170102024359.aa82ae3e.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2017 06:47:18 -0000 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 suggestions