up vote -1 down vote favorite
share [g+] share [fb]

I'm trying to implement ssh server under a custom Debian-based installation, which has no GUI, and yet no ssh access. How can I know whether SSH is installed, and how can I know whether the firewall actually allows it or not ?

link|improve this question

3  
Wait, you mean you can't access the server AT ALL? – PP. Dec 7 '09 at 15:01
1  
You don't even have console access? – PP. Dec 7 '09 at 15:02
I do have console access, but when I try to connect via SSH, I get a "Connection refused". Also, I cannot seem to find SSH, and the depots don't seem to be configured so I can retrieve SSH. – jfmessier Dec 9 '09 at 12:05
feedback

2 Answers

up vote 4 down vote accepted

To check whether the firewall allows it (assuming you're using iptables) write iptables -l (with root, otherwise put sudo in front).

As to whether the ssh-server is installed or not (assuming you're using packages) do aptitude search openssh-server and check the status marker next to the name.

If you're outside the server, simply try to connect to the IP on port 22 to verify/check that it is open :)

link|improve this answer
OP states no GUI (ha!) or SSH access :P – Jakub Dec 7 '09 at 15:04
feedback

Ask the server administrator ;)

Otherwise it just seems shady with the details you've given us.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.