Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I wanted to run my sshd with another user (not root, not a wheel user), how can I do it?
When i start the service I get this:
alex@kr0n:/usr/sbin -> sshd
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol versions 2. Could not load host key
sshd: no hostkeys available -- exiting
alex@kr0n:/usr/sbin ->
Originally posted by nullpt
alex@kr0n:/usr/sbin -> sshd
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol versions 2. Could not load host key
sshd: no hostkeys available -- exiting
alex@kr0n:/usr/sbin ->
sshd should be either started by user root,
or a system user specifically created
for this purpose... if this is what alex is
for disregard my concerns :)
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
you cannot start the daemon as a regular user unless you chown/chgrp the service. I advise against this as it is easy to just su to root and start the service with :
[bignate@redbox3 bignate]$ su
Password:
[root@redbox3 bignate]# /etc/init.d/sshd start
Starting sshd: [ OK ]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.