Answer the question
In order to leave comments, you need to log in
How to organize access to the screen shell via sftp?
Good evening, comrades!
I'm working on one project and have been using root access all the time.
However, now the project is fat and I can't handle it alone and I want to organize a system of users on the server.
Shaw is:
- The server has 3 services running in the background under the screen shell
What I want to do:
I want there to be 3 users :
- home folders /home/servers/alfa , /home/servers/beta , /home/servers/ gamma ;
- access to screen of the same name : alfa, beta , gamma ;
- the ability to get file access to your home folders via the SFTP protocol
Use, thanks to everyone who took the time!
PS: If possible, write in more detail, I'm a little silly c:
OS: Ubuntu 16.04.5 LTS
Answer the question
In order to leave comments, you need to log in
if you don't want to set up a web server manager, which is quite convenient (webmin)
, then start users from the console
# adduser username --here the profile
go to the user in the console
# su username --here is the password
# screen -ls -- and this I think you know
, and for access from outside via SFTP, you already set up / duplicate the profile (with changing the login and password) in the application for each account.
And the fact that you work from under the root is not very good ... it's
better to get used to #su "application"
or you want to generate accounts + password, according to the profile and .... (I won't guess). -Explain?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question