LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-05-2003, 04:46 PM   #1
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Rep: Reputation: 15
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, ;-)
 
Old 08-05-2003, 05:17 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Might want to have a look at ssh-keygen (man ssh-keygen)
 
Old 08-05-2003, 06:01 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 08-05-2003, 06:14 PM   #4
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
What do you want to do? I am a little confused. sshd is not a complete comand. sshd is a daemon not a command.
 
Old 08-05-2003, 07:33 PM   #5
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Original Poster
Rep: Reputation: 15
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
 
Old 08-05-2003, 09:14 PM   #6
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
do you mean start the deamon?
 
Old 08-05-2003, 09:31 PM   #7
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Original Poster
Rep: Reputation: 15
yes
 
Old 08-05-2003, 09:45 PM   #8
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
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?
 
Old 08-05-2003, 11:32 PM   #9
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration