LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ssh (https://www.linuxquestions.org/questions/linux-software-2/ssh-79308/)

nullpt 08-05-2003 04:46 PM

ssh
 
Hello,

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 ->

Thanks in advance, ;-)

mcleodnine 08-05-2003 05:17 PM

Might want to have a look at ssh-keygen (man ssh-keygen)

Tinkster 08-05-2003 06:01 PM

Re: ssh
 
Quote:

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 :)

Cheers,
Tink

BigNate 08-05-2003 06:14 PM

What do you want to do? I am a little confused. sshd is not a complete comand. sshd is a daemon not a command.

nullpt 08-05-2003 07:33 PM

The ssh-keygen is not clear about my question, i took a look at the handbook about it and I haven't figured out what to do.

Create a key for the "alex" user, so he can run sshd. That's the point.

Thanks in advance

BigNate 08-05-2003 09:14 PM

do you mean start the deamon?

nullpt 08-05-2003 09:31 PM

yes

BigNate 08-05-2003 09:45 PM

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 ]

easy peasy!

Why do you wanna start it as a regular user?

nullpt 08-05-2003 11:32 PM

I didn't want to run it as root.

I was taking a look at /etc/master.passwd and i've saw:
sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/sbin/nologin

So i tought i could run it with another user.

Thanks anyway


All times are GMT -5. The time now is 11:48 AM.