how to kill ssh once and for all?


Results 1 to 12 of 12

Thread: how to kill ssh once and for all?

  1. #1
    Join Date
    Apr 2004
    Location
    Athens, Greece
    Posts
    606

    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=====

  2. #2
    Join Date
    Nov 2000
    Location
    Kongsberg, Norway
    Posts
    3,572
    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 --

  3. #3
    Join Date
    Sep 2003
    Location
    Rochester, MN
    Posts
    3,604
    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.

  4. #4
    Join Date
    Apr 2004
    Location
    Athens, Greece
    Posts
    606
    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=====

  5. #5
    Join Date
    Mar 2003
    Location
    Augusta, GA
    Posts
    5,459
    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)

  6. #6
    Join Date
    Apr 2004
    Location
    Athens, Greece
    Posts
    606
    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=====

  7. #7
    Join Date
    Apr 2003
    Location
    Buenos Aires, Argentina
    Posts
    4,219
    hard candy, He's not using Slack
    djserz.com.ar
    "All the drugs in this world won't save you from yourself..."

  8. #8
    Join Date
    Jul 2002
    Posts
    4
    Originally posted by serz
    hard candy, He's not using Slack
    Perhaps he should try this:

    chmod u-x `which sshd`


  9. #9
    Join Date
    Apr 2003
    Location
    Buenos Aires, Argentina
    Posts
    4,219
    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..."

  10. #10
    Join Date
    Jul 2002
    Posts
    4
    Originally posted by serz
    No, that would make affect to the sshd binary itself, not the script that starts it.

    But it would work

  11. #11
    Join Date
    Nov 2024
    Posts
    1
    Quote Originally Posted by cybertron View Post
    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:

  12. #12
    Join Date
    Apr 2011
    Location
    Largo, FL.
    Posts
    76
    Quote Originally Posted by jinreal View Post
    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
  •