LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Are there any cases to run sshd at remote host? (https://www.linuxquestions.org/questions/linux-newbie-8/are-there-any-cases-to-run-sshd-at-remote-host-673010/)

bartalamu 09-29-2008 12:21 AM

Are there any cases to run sshd at remote host?
 
The situatin is:
I installed the secure kit which disable telnet and rsh. Login to host is possible with ssh, but sshd is down. Are there some cases how i can remotely reboot hosts or make the sshd up?

jschiwal 09-29-2008 12:39 AM

Do you have any other administrative interface to the remote computer. I not, then no. Someone onsite will need to restart it or log in an start up sshd. Did you have it running before disabling the others?

Do you know for a fact the ssn is down? It could be that root access is denied and you can try logging in as a normal user. Another possibility is that the port is closed by the firewall.

Try "telnet <hostname> 22". Do you get a message such as
telnet: connect to address 192.168.1.100: Connection refused
Or is it like:
telnet qosmio 22
Trying 192.168.1.100...
Connected to qosmio.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.0
^C^C
Connection closed by foreign host.
If the later, then sshd is running. If the former, either the service isn't running or the firewall is blocking the port, and you need to fix it on site.

In the future, it is a good idea to have a ssh session set up in one shell while you work in another or via another kind of interface. Test you connect on the second, and if you are locked out, the first is there to undo what you did, or start a service, etc.

bartalamu 09-29-2008 01:42 AM

Thx for ideas, I know that now it is only possible on site...As you describe i had anoter opened session, but anywhere i kill sshd by myself, and ofcourse it refuse to do ssh (and telnet/rsh is blocked by Secure kit)....So i have to go to site (((. I just try to know maybe we have another posibilities....


All times are GMT -5. The time now is 05:54 PM.