create user with SSH access

Permissions, domain/LDAP, power, security, notification and more.
Locked
User avatar
Mnemosys85
Posts: 3
Joined: 26 Jun 2021, 18:04

create user with SSH access

Post by Mnemosys85 »

I am trying to connect via ssh to my NAS to do some changes to the nextcloud config file.

ssh root@IP -p 9222
root@IP's password:
Permission denied (publickey,password).

I am using the admin password but I always get this 'Permission denied' message.
I tried to change the password but there is no 'admin' user in the list. The only user in the list is the user (mynas) that was created when I set-up the NAS server.

I had a look through the help section on the NAS and found this:
20181106162918_76724.png
The only problem is that when I try to create a new user I don't have that tick box to allow SSH access for that user.
Does anyone know what password I need to use? The only password that I ever used through the setup process was the password for my login and that doesn't work for what I need to do.
User avatar
djonesuk
Posts: 23
Joined: 28 Jun 2021, 22:01

Re: create user with SSH access

Post by djonesuk »

The file you would need to edit is /etc/ssh/sshd_config. Change the line

Code: Select all

AllowUsers admin
(where admin is the name of your TNAS admin user) to

Code: Select all

AllowUsers admin fredsmith
where fredsmith is the username you wish to give ssh access
User avatar
riparid971
Posts: 1
Joined: 26 Oct 2021, 01:06

Re: create user with SSH access

Post by riparid971 »

djonesuk wrote: 24 Aug 2021, 06:10 The file you would need to edit is /etc/ssh/sshd_config. Change the line

Code: Select all

AllowUsers admin
(where admin is the name of your TNAS admin user) to

Code: Select all

AllowUsers admin fredsmith
where fredsmith is the username you wish to give ssh access
Thanks, it worked! Was facing a similar issue.
Hi team, thanks for creating such an active forum.
Locked