Home » Questions » Computers [ Ask a new question ]

How to query whether SSH is available under Debian?

How to query whether SSH is available under Debian?

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 ?

Asked by: Guest | Views: 85
Total answers/comments: 2
Guest [Entry]

"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 :)"
Guest [Entry]

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