Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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
add comment

3 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 :)

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

Ask the server administrator ;)

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

share|improve this answer
add comment
  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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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