-
how to kill ssh once and for all?
there is no ssh script in my rc5.d folder but whenever i see the running processes ssh is running and i always have to kill it manually.
/etc/rc5.d# ls -all
total 12
drwxr-xr-x 2 root root 4096 Jul 29 10:55 .
drwxr-xr-x 159 root root 8192 Jul 30 12:23 ..
lrwxrwxrwx 1 root root 18 Jul 28 22:56 K20darkstat -> ../init.d/darkstat
lrwxrwxrwx 1 root root 18 Jul 19 18:22 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root 17 Jul 19 18:22 S11hotplug -> ../init.d/hotplug
lrwxrwxrwx 1 root root 15 Jul 19 18:22 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root 17 Jul 19 18:22 S12kerneld -> ../init.d/kerneld
lrwxrwxrwx 1 root root 18 Jul 20 11:59 S20darkstat -> ../init.d/darkstat
lrwxrwxrwx 1 root root 22 Jul 19 20:27 S20dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 18 Jul 20 00:35 S20gkrellmd -> ../init.d/gkrellmd
lrwxrwxrwx 1 root root 17 Jul 20 00:36 S20hddtemp -> ../init.d/hddtemp
lrwxrwxrwx 1 root root 17 Jul 19 18:22 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root 13 Jul 19 23:44 S20xfs -> ../init.d/xfs
lrwxrwxrwx 1 root root 18 Jul 29 10:54 S40arpwatch -> ../init.d/arpwatch
lrwxrwxrwx 1 root root 13 Jul 20 00:35 S99gdm -> ../init.d/gdm
lrwxrwxrwx 1 root root 13 Jul 19 18:22 S99kdm -> ../init.d/kdm
lrwxrwxrwx 1 root root 19 Jul 19 18:22 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root 13 Jul 19 18:22 S99xdm -> ../init.d/xdm
from ps aux
4439 0.0 0.1 3000 376 ? Ss Jul29 0:00 /usr/bin/ssh-age
---------------------------------------------------------------
Linux user #355624 Debian Linux
Latitude D810 --Pentium M 1.86Ghz , 1GB DDR II PC-4300. X600 ,15.4". SATA 60GB
Home ssh / ftp server P 4 @ 2.8Ghz , 225gb 3 x maxtors
===== www.kanotix.com=====
-
On most recent distros the ssh daemon is started as a xinetd daemon. Have a look in /etc/xinetd.d/ and remove the sshd-xinetd file.
Linux User #181509
* It can hardly be a coincidence that no language on this planet
has ever come up with the phrase "as pretty as an airport" *
-- Douglas Adams --
-
SSH wouldn't necessarily need to be in runlevel five. It can run just fine in CLI-only too. Check the other rc*.d directories and you may find that there is a startup script.
I don't recognize ssh-age as a process though. The only ssh processes that I'm used to seeing are ssh and sshd, so you might want to google that and see what it actually is.
-
i can only find ssh in run level 1 and 2 . should i just delete them from there or not? a scan to myself showed these :
PORT STATE SERVICE
1/tcp open tcpmux
21/tcp open ftp
22/tcp open ssh
---------------------------------------------------------------
Linux user #355624 Debian Linux
Latitude D810 --Pentium M 1.86Ghz , 1GB DDR II PC-4300. X600 ,15.4". SATA 60GB
Home ssh / ftp server P 4 @ 2.8Ghz , 225gb 3 x maxtors
===== www.kanotix.com=====
-
Try "chmod u-x /etc/rc.d/rc.sshd" which will make the script unexecutable. Or you can boot up with the installation disk and run "pkgtool" and select "Choose which services to start up". You will need to mount the drive, when you run "pkgtool" it will give you instructions on how to do it.
__________________________________________________ _______________________________________
Bigboogie on boogienights.net:
Ammo case
Asus 8N32 SLI MB
AMD Athlon x2 3800+
2 GB Patriot Signature 400 DDR
160 GB Hitachi 7200 IDE
2 x-250 Seagate SATA2
EVGA Nvidia 7900GT
Dell 2007WFP
Logitech 5.1 speakers
Logitech MX1000 mouse
Dell USB keyboard
NEC 3500 DVD-RW
Benq 1655 DVD-RW
(God bless tax refunds)
-
Originally posted by hard candy
Try "chmod u-x /etc/rc.d/rc.sshd" which will make the script unexecutable. Or you can boot up with the installation disk and run "pkgtool" and select "Choose which services to start up". You will need to mount the drive, when you run "pkgtool" it will give you instructions on how to do it.
chmod u-x /etc/rc.d/rc.sshd
chmod: cannot access `/etc/rc.d/rc.sshd': No such file or directory
---------------------------------------------------------------
Linux user #355624 Debian Linux
Latitude D810 --Pentium M 1.86Ghz , 1GB DDR II PC-4300. X600 ,15.4". SATA 60GB
Home ssh / ftp server P 4 @ 2.8Ghz , 225gb 3 x maxtors
===== www.kanotix.com=====
-
hard candy, He's not using Slack
djserz.com.ar
"All the drugs in this world won't save you from yourself..."
-
Originally posted by serz
hard candy, He's not using Slack
Perhaps he should try this:
chmod u-x `which sshd`
-
Originally posted by MrManiac
Perhaps he should try this:
chmod u-x `which sshd`
No, that would make affect to the sshd binary itself, not the script that starts it.
djserz.com.ar
"All the drugs in this world won't save you from yourself..."
-
Originally posted by serz
No, that would make affect to the sshd binary itself, not the script that starts it.
But it would work
-
Originally Posted by cybertron
SSH wouldn't necessarily need to be in runlevel five. It can run just fine in CLI-only too. Check the other rc*.d directories and you may find that there is a startup script.
I don't recognize ssh-age as a process though. The only ssh processes that I'm used to seeing are ssh and sshd, so you might want to google that and see what it actually is.
The full name should be ssh-agent, the line may be broken into two parts as below which I've just encountered:
-
Originally Posted by jinreal
The full name should be ssh-agent, the line may be broken into two parts as below which I've just encountered:
jinreal - NOTE - this thread is TWENTY YEARS OLD.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|