Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
Wait, you mean you can't access the server AT ALL? – PP. Dec 7 '09 at 15:01
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
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 :)

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

Ask the server administrator ;)

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

share|improve this answer
  1. If you have console access, dpkg -l openssh-server will tell you whether or not the SSH server package is installed.
  2. Running pgrep sshd will return the process ID of the SSH daemon if it is running.
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .