sshd doesn`t work
hello!
I have a little problem about sshd, but i can`t set it up. i have used slackwafre linux 10.0. And ssh was working with no problem, but now when i try to connect i have this message: Code:
ticko@tickobox:~$ ssh ticko.heapsoft.com |
Are you hosting the server yourself?
Is it behind a firewall? Can you access any other services on the server? When you say that ssh was working w/ no problem do you mean that you could ssh into localhost? Code:
cat /etc/ssh/sshd_config |
here is it.
Code:
root@tickobox:/home/ticko# cat /etc/ssh/sshd_config |
I'm having the same problem but I can't even connect on the local machine that sshd is running on.
|
Quote:
Quote:
Quote:
Quote:
Quote:
Still some unanswered questions that would help us on the forum figure out what's wrong. |
did you regenerate your keys or something.
and are you passing the passphrare automatically using ssh-agent? you might want to turn 'PAM' authentication to 'no'. try that... i would regen your keys at both sides. and blank any know keys and known hosts to get back to a blank sheet.... |
ok I regenerated the keys all right but it still refused my connection on port 22. To clerify this happens when I try $>ssh localhost so its not due to an external firewall.
and here is something interestinf sshd isint running appenetly... when I try /etc/rc.d/rc.sshd restart I get the message: sshd: no process killed and it is not in the process tree when I try ps ax where are the log files kept because something could be going on I can't see. |
so 'ps -ax|grep -i sshd' produces nothing?
hmm sounds like ssh isn't running. Can you ssh out from this box? bearing in mind that sshd doesnt need to be running to make outward connections.... are you sure this service is set to start when the system reboots? I'm not familiar with openbsd, but in Netbsd, you need to put it in the /etc/rc.conf file. (openbsd was a fork from netbsd,btw). |
As root:
Code:
/etc/rc.d/rc.sshd start |
ps ax |grep -i sshd
produces nothing I also tried darin's suggestion but either noting prints to the log involving sshd or I'm not doing something right. I have hit another wall. it just seems that sshd won't run and won't tell me why. Is it possable something got corrupted becuase this happened at the same time the permissions for /dev/null got changed somehow. I don't know what happened there just one day it started complaining about permission problems wih /dev/null. I fixed that (I think/hope) by changing the permissions to world readable/writable. I don't know how this affects my sshd problem but hopfully there is something I can do to get it working again. |
what is the output when you actually start the service??
|
no output whatsoever now.
When I wiped the rsa keys and started it it did give me output concerning that. Creating them. Other then that nothing |
i dont know how darwin works. but in hp-ux you have to go into /etc/rc.config.d/ and edit the ssh file so that it says something like sshd=1. otherwise it doesnt start even if you type /sbin/init.d/secsh start (the hp way of doing it). i wonder if there is a similar thing in darwin?
can you show the init script? dunno if there is an /etc/init.d or equivalent... |
All times are GMT -5. The time now is 12:04 PM. |