How can I tell if SSH is enabled?
I want to make sure that SSH is disabled. Please advice how to do that.
Thank you. |
Hello,
On Debian based systems you can use: Code:
/etc/init.d/ssh status Code:
ps -ef | grep sshd Code:
netstat -aln | grep ":22" Eric |
Hi,
Here are 2 ways: Check if ssh is running: ps -ef | grep sshd There shouldn't be any output, if there is ssh is up. You can also check if ssh is listening on its port: netstat -plan | grep ":22" Hope this helsp. |
You can check to see if the sshd daemon is running with ps ax | grep "sshd"...
EDIT: wow, lots of people got to it before me LOL |
SSH is up!
I forgot to mention that I use Ubuntu 10.4. sorry
Here's my output of what I wrote: Code:
$ ps -ef | grep sshd How can I disable it from running? Thank you all for the quick reply! |
Hello,
Running: Code:
sudo /etc/init.d/sshd stop Kind regards, Eric |
Hi,
The above output looks ok. The output of ps -ef | grep .... shows the grep process itself and _not_ the sshd daemon. sshd is not up and running. Hope this helps. |
Eric,
In response to /etc/init.d/ssh status I got nothing. However, in response to ps -ef | grep sshd I got Code:
root 1151 1 0 14:24 ? 00:00:00 /usr/sbin/sshd -D I got Code:
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN I read "Yes, there's a nasty new botnet infecting Linux devices, but your personal PC is probably safe. Here's why." and I worry. I'm still only a few years using Linux Mint 17 (on 17.2 now). Thanks in advance! Cecilieaux |
if you didnt spend hours reading instructions and configuring IT IS NOT working
install ssh fresh, in debian (up to sqeeze anyhows) it "makes a key" and takes a while doing it the use "tcpdump" or some tool while using ssh between two hosts on a lan the data is CLEAR TEXT. that key made is bogus in that it is not used by default for anything. ssh injects it's headers into your tcp headers but offers NO SECURITY unless you delve into all it's configs and key gens and get it "to work" ---------- Post added 10-19-15 at 05:02 PM ---------- anyone telling you otherwise is probably a hack or a foreign military HOPING YOU WONT KNOW |
Another way to check- try to connect via SSH:
Code:
ssh localhost If you get "connection refused" or similar, then it's not running. If you get a password prompt, a "Permission denied (publickey)" (or similar), or even a shell prompt, SSH is alive and well. |
Quote:
ssh is OpenSSH SSH client sshd is OpenSSH Server. To which do you refer? |
Quote:
Try reading up on how things work https://en.wikipedia.org/wiki/Secure_Shell http://www.snailbook.com/protocols.html Even SSH-1 was encrypted end-to-end...there has NEVER been 'clear text' sent over SSH, ever. |
Quote:
Can you please remain silent if all you have is an false opinion w/ no knowledge or experience to back it? Your statements are blatantly wrong, and I'm strongly tempted to remove them from the forum. Regards, Tink |
All times are GMT -5. The time now is 06:07 PM. |