LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Starting SSH, but LSH is stopping me (https://www.linuxquestions.org/questions/linux-newbie-8/starting-ssh-but-lsh-is-stopping-me-723250/)

SuperDude123 05-02-2009 11:27 PM

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?

AlucardZero 05-03-2009 08:04 AM

Can you provide more details, for example the exact error message?

SuperDude123 05-03-2009 10:16 AM

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

emetib 05-03-2009 10:27 AM

is this for your debian or mac?

do you have the ssh server installed?

emetib 05-03-2009 10:31 AM

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.

SuperDude123 05-03-2009 10:41 AM

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?

AlucardZero 05-03-2009 10:45 AM

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.

SuperDude123 05-03-2009 12:07 PM

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?


All times are GMT -5. The time now is 08:07 PM.