LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2009, 11:27 PM   #1
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Rep: Reputation: 30
Starting SSH, but LSH is stopping me


Well I am trying to setup SSH, but when I was trying to restarting it, I would see that sshd_do_not_run or something similar file was stoping me. How do I deal with this?
 
Old 05-03-2009, 08:04 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Can you provide more details, for example the exact error message?
 
Old 05-03-2009, 10:16 AM   #3
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
after running :

/etc/init.d/ssh restart


I get:

Restarting OpenBSD Secure Shell server: sshd.
OpenBSD Secure Shell server not in use (/etc/ssh/sshd_not_to_be_run).
 
Old 05-03-2009, 10:27 AM   #4
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
is this for your debian or mac?

do you have the ssh server installed?
 
Old 05-03-2009, 10:31 AM   #5
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
another question-
in your title you have "Starting SSH, but LSH is stopping me"

how do you know if lsh is stopping things.
with the output that you gave, it doesn't say anything about lsh.
 
Old 05-03-2009, 10:41 AM   #6
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
Maybe its not LSH, but when I opened up the /etc/ssh/sshd_not_to_be_run file, I figured it was LSH that was stopping it.

All the commands are being run from terminal in my mac to my debian box.


How do I know if my key authentication is working? When I SSH in to my box (ssh user@192.168.0.100) from terminal in mac, all I get prompted for is user's password. I'm I not supposed to be asked what is the pass phrase for my key?
 
Old 05-03-2009, 10:45 AM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
If you have 2.6.18 then you're on Etch and shouldn't even have a sshd_not_to_be_run. Do you have both openssh-server and openssh-client installed? Just remove sshd_not_to_be_run to get sshd to start.

Or are you actually running sshd from inetd? /etc/inetd.conf. It should be its own daemon, not run from inetd, even in oldstable.

Last edited by AlucardZero; 05-03-2009 at 10:46 AM.
 
Old 05-03-2009, 12:07 PM   #8
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
Actually this is a fresh install on a newer system, and I am using the latest Debian.

So what should I do? Do I simply delete the file, and that's it? As of now, I can log in to SSH with my mac to my linux box, but I'm not asked for the RSA key. What would cause this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Starting/Stopping SSH Verbal Kint Linux - General 2 07-30-2007 04:20 PM
Starting and Stopping services leupi Ubuntu 6 01-20-2007 05:12 PM
Stopping X from starting KennyK Linux - Software 4 06-03-2003 08:12 PM
stopping and starting services nero64 Linux - Newbie 3 11-13-2002 01:10 AM
Starting/stopping httpd bughunter Linux - Newbie 3 10-20-2001 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 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