How can I truly shut down ssh server?ssh daemon error: sshd must be ownMigrate socat init script to systemdWhy is my Systemd unit loaded, but inactive (dead)?systemd: How to unmask a service whose unit file is empty?Linux ssh (bug/broken) still working even when the service is stopped on linux ubuntu?Why x0vncserver is not starting at boot?What is the difference between Process: and Main PID: in the output of systemctl status?Why is systemd stopping service immediately after it is started?Daemon not started by systemdCan't find SSHD/systemd socket-activated logs

This one's for Matthew:

What is a "shilicashe?"

Do I have a right to cancel a purchase of foreign currency in the UK?

How do you move up one folder in Finder?

How would vampires avoid contracting diseases?

String manipulation with std::adjacent_find

When I press the space bar it deletes the letters after it

Optimization terminology: "Exact" v. "Approximate"

Confirming the Identity of a (Friendly) Reviewer After the Reviews

For a hashing function like MD5, how similar can two plaintext strings be and still generate the same hash?

What to do with a rabbit in a survival situation?

GDPR rights when subject dies; does family inherit subject rights?

Integer Lists of Noah

How can I truly shut down ssh server?

How to tell someone I'd like to become friends without letting them think I'm romantically interested in them?

Received a dinner invitation through my employer's email, is it ok to attend?

Word meaning to destroy books

How are mathematicians paid to do research?

Short story about Nobel Prize winning scientists that drop out when they realise they were incorrect

Which star / galaxy is moving away from us the fastest?

Can the Mage Hand cantrip be used to trip an enemy who is running away?

How can a dictatorship government be beneficial to a dictator in a post-scarcity society?

How were Martello towers supposed to work?

Why would non-kinetic weapons be used for orbital bombardment?



How can I truly shut down ssh server?


ssh daemon error: sshd must be ownMigrate socat init script to systemdWhy is my Systemd unit loaded, but inactive (dead)?systemd: How to unmask a service whose unit file is empty?Linux ssh (bug/broken) still working even when the service is stopped on linux ubuntu?Why x0vncserver is not starting at boot?What is the difference between Process: and Main PID: in the output of systemctl status?Why is systemd stopping service immediately after it is started?Daemon not started by systemdCan't find SSHD/systemd socket-activated logs






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I disable the ssh server with systemctl disable ssh then reboot. After reboot, I still can log into the remote server through ssh. I use systemctl status ssh to check the server status and it is inactive.



$ systemctl -a | grep ssh
ssh.service loaded inactive dead OpenBSD Secure Shell server
ssh@3-192.168.0.120:22-192.168.0.104:31079.service loaded active running OpenBSD Secure Shell server per-connection daemon (192.168.0.104:31079)
system-ssh.slice loaded active active system-ssh.slice
ssh.socket loaded active listening OpenBSD Secure Shell server socket









share|improve this question
























  • Could you add the output of systemctl status ssh to your question?

    – Fiximan
    9 hours ago











  • It is much like:● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-07-09 23:25:16 CST; 1s ago

    – codexplorer
    8 hours ago


















4















I disable the ssh server with systemctl disable ssh then reboot. After reboot, I still can log into the remote server through ssh. I use systemctl status ssh to check the server status and it is inactive.



$ systemctl -a | grep ssh
ssh.service loaded inactive dead OpenBSD Secure Shell server
ssh@3-192.168.0.120:22-192.168.0.104:31079.service loaded active running OpenBSD Secure Shell server per-connection daemon (192.168.0.104:31079)
system-ssh.slice loaded active active system-ssh.slice
ssh.socket loaded active listening OpenBSD Secure Shell server socket









share|improve this question
























  • Could you add the output of systemctl status ssh to your question?

    – Fiximan
    9 hours ago











  • It is much like:● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-07-09 23:25:16 CST; 1s ago

    – codexplorer
    8 hours ago














4












4








4








I disable the ssh server with systemctl disable ssh then reboot. After reboot, I still can log into the remote server through ssh. I use systemctl status ssh to check the server status and it is inactive.



$ systemctl -a | grep ssh
ssh.service loaded inactive dead OpenBSD Secure Shell server
ssh@3-192.168.0.120:22-192.168.0.104:31079.service loaded active running OpenBSD Secure Shell server per-connection daemon (192.168.0.104:31079)
system-ssh.slice loaded active active system-ssh.slice
ssh.socket loaded active listening OpenBSD Secure Shell server socket









share|improve this question
















I disable the ssh server with systemctl disable ssh then reboot. After reboot, I still can log into the remote server through ssh. I use systemctl status ssh to check the server status and it is inactive.



$ systemctl -a | grep ssh
ssh.service loaded inactive dead OpenBSD Secure Shell server
ssh@3-192.168.0.120:22-192.168.0.104:31079.service loaded active running OpenBSD Secure Shell server per-connection daemon (192.168.0.104:31079)
system-ssh.slice loaded active active system-ssh.slice
ssh.socket loaded active listening OpenBSD Secure Shell server socket






systemd sshd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 hours ago









Gilles

563k134 gold badges1158 silver badges1668 bronze badges




563k134 gold badges1158 silver badges1668 bronze badges










asked 9 hours ago









codexplorercodexplorer

1213 bronze badges




1213 bronze badges












  • Could you add the output of systemctl status ssh to your question?

    – Fiximan
    9 hours ago











  • It is much like:● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-07-09 23:25:16 CST; 1s ago

    – codexplorer
    8 hours ago


















  • Could you add the output of systemctl status ssh to your question?

    – Fiximan
    9 hours ago











  • It is much like:● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-07-09 23:25:16 CST; 1s ago

    – codexplorer
    8 hours ago

















Could you add the output of systemctl status ssh to your question?

– Fiximan
9 hours ago





Could you add the output of systemctl status ssh to your question?

– Fiximan
9 hours ago













It is much like:● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-07-09 23:25:16 CST; 1s ago

– codexplorer
8 hours ago






It is much like:● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-07-09 23:25:16 CST; 1s ago

– codexplorer
8 hours ago











1 Answer
1






active

oldest

votes


















6














The systemd SSH socket is active, and the SSH service is socket-activated. You need to disable the socket as well:



systemctl disable --now ssh.socket


In fact, on my Arch system, the sshd daemon runs only when a new connection comes in. At other times, the only instances of sshd are the child processes forked off to handle those connections.



Also see:



  • systemd and socket activation





share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529203%2fhow-can-i-truly-shut-down-ssh-server%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    The systemd SSH socket is active, and the SSH service is socket-activated. You need to disable the socket as well:



    systemctl disable --now ssh.socket


    In fact, on my Arch system, the sshd daemon runs only when a new connection comes in. At other times, the only instances of sshd are the child processes forked off to handle those connections.



    Also see:



    • systemd and socket activation





    share|improve this answer



























      6














      The systemd SSH socket is active, and the SSH service is socket-activated. You need to disable the socket as well:



      systemctl disable --now ssh.socket


      In fact, on my Arch system, the sshd daemon runs only when a new connection comes in. At other times, the only instances of sshd are the child processes forked off to handle those connections.



      Also see:



      • systemd and socket activation





      share|improve this answer

























        6












        6








        6







        The systemd SSH socket is active, and the SSH service is socket-activated. You need to disable the socket as well:



        systemctl disable --now ssh.socket


        In fact, on my Arch system, the sshd daemon runs only when a new connection comes in. At other times, the only instances of sshd are the child processes forked off to handle those connections.



        Also see:



        • systemd and socket activation





        share|improve this answer













        The systemd SSH socket is active, and the SSH service is socket-activated. You need to disable the socket as well:



        systemctl disable --now ssh.socket


        In fact, on my Arch system, the sshd daemon runs only when a new connection comes in. At other times, the only instances of sshd are the child processes forked off to handle those connections.



        Also see:



        • systemd and socket activation






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 9 hours ago









        murumuru

        41.2k5 gold badges99 silver badges174 bronze badges




        41.2k5 gold badges99 silver badges174 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529203%2fhow-can-i-truly-shut-down-ssh-server%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Sahara Skak | Bilen | Luke uk diar | NawigatsjuunCommonskategorii: SaharaWikivoyage raisfeerer: Sahara26° N, 13° O

            The fall designs the understood secretary. Looking glass Science Shock Discovery Hot Everybody Loves Raymond Smile 곳 서비스 성실하다 Defas Kaloolon Definition: To combine or impregnate with sulphur or any of its compounds as to sulphurize caoutchouc in vulcanizing Flame colored Reason Useful Thin Help 갖다 유명하다 낙엽 장례식 Country Iron Definition: A fencer a gladiator one who exhibits his skill in the use of the sword Definition: The American black throated bunting Spiza Americana Nostalgic Needy Method to my madness 시키다 평가되다 전부 소설가 우아하다 Argument Tin Feeling Representative Gym Music Gaur Chicken 일쑤 코치 편 학생증 The harbor values the sugar. Vasagle Yammoe Enstatite Definition: Capable of being limited Road Neighborly Five Refer Built Kangaroo 비비다 Degree Release Bargain Horse 하루 형님 유교 석 동부 괴롭히다 경제력

            19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу