[ale] service user vs no login user and ssh into it
Joey Kelly
joey at joeykelly.net
Tue Jul 25 20:10:21 EDT 2017
On Tuesday 25 July 2017 11:57:24 Narahari 'n' Savitha wrote:
> Friends:
>
> I want to create a user called myansible.
>
> This user will have sudo rights (have to enter password)
>
> However I want to set it up as a NO-LOGIN user. Its only purpose is to run
> deployments and thats it.
>
> The question is if it cannot login how can I put the .ssh/authorized_keys
> so I can run stuff over ssh (Read ansible) ?
Take a gander at
PermitRootLogin without-password
If it works for root, it'll probably work if you set up a user in
/etc/ssh/sshd_config too.
--
Joey Kelly
Minister of the Gospel and Linux Consultant
http://joeykelly.net
504-239-6550
More information about the Ale
mailing list