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, ;-) |
Might want to have a look at ssh-keygen (man ssh-keygen)
|
Re: ssh
Quote:
or a system user specifically created for this purpose... if this is what alex is for disregard my concerns :) Cheers, Tink |
What do you want to do? I am a little confused. sshd is not a complete comand. sshd is a daemon not a command.
|
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 |
do you mean start the deamon?
|
yes
|
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? |
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. |