Ubuntu 禁用 Update MOTD SSH 登录欢迎信息

Kevin 教程 1,563 次浏览 47条评论

SSH 登录 Ubuntu Server 默认会显示一段信息,包括了系统版本,官方文档链接,系统通知事件等(如软件包更新可用状态)。如果不需要显示,可以用下面方法禁用这个 Update MOTD 功能。

Update MOTD SSH 登录信息

方法一

修改/etc/pam.d/login/etc/pam.d/sshd配置文件,注释下面两行参数。

# session    optional   pam_motd.so motd=/run/motd.dynamic
# session    optional   pam_motd.so noupdate

检查/etc/ssh/sshd_config配置文件,确保里面 PrintMotd 参数设置为 no。

方法二

修改调用脚本文件目录权限限制写入。

chmod -R 0644 /etc/update-motd.d

以上两种方法均实测可行。同时适用 Debian 系统(参数内容有所差异,但方法一样)。

评论列表

  1. #1

    Hi, very nice website, cheers!
    ——————————————————
    Need cheap and reliable hosting? Our shared plans start at $10 for an year and VPS plans for $6/Mo.
    ——————————————————
    Check here: https://www.reliable-webhosting.com/

  2. #2

    dapoxetine 60mg brand name https://dapoxetine.confrancisyalgomas.com/

  3. #3

    does hydroxychloroquine help covid https://hydroxychloroquine.webbfenix.com/

  4. #4

    ivermectin pills for lice https://ivermectin.mlsmalta.com/

  5. #5

    normal vidalista dosage https://vidalista40mg.mlsmalta.com/

  6. #6

    dapoxetine physician samples https://ddapoxetine.com/

  7. #7

    spotting while on tamoxifen https://tamoxifen.mrdgeography.com/

  8. #8

    generic name for cialis https://wisig.org/

  9. #9

    azithromycin 250 mg for fish https://hydroxychloroquinee.com/

  10. #10

    walmart pharmacy albuterol inhaler https://amstyles.com/

  11. #11

    5mg tadalafil daily effects https://tadalafil.cleckleyfloors.com/

  12. #12

    side effects of prednisone in dogs https://prednisone.bvsinfotech.com/

  13. #13

    buy plaquenil in india https://hydroxychloroquine.wisig.org/

  14. #14

    buy plaquenil in india https://hydroxychloroquine.mymvrc.org/

  15. #15

    generic cialis http://cialllis.com/

  16. #16

    Abfallsäcke-schwarz, 120L(700×1100), 30 mµ. 1 Karton/750 St. € 64,99 (Brutto, frei Haus).

    Abfallsäcke-blau/rot/gelb, 120L(700×1100), 30 mµ. 1 Karton/750 St. € 67,99 (Brutto, frei Haus).

    Abfallsäcke-schwarz, 240L(1100×1300), 40 mµ. 1 Karton/300 St. € 66,99. (Brutto, frei Haus).

    Abfallsäcke-schwarz oder blau mit Zugband, 60L(600×900), 40 mµ. 1 Karton/600 St. € 44,99 (Brutto, frei Haus).

    Abfallsäcke-schwarz oder blau mit Zugband, 35L(550×600), 40 mµ. 1 Karton/750 St. € 47,99 (Brutto, frei Haus).

    Papiersäcke, 120L (650×1150), 1 Karton/150 St. € 88,99 (Brutto, frei Haus).

    Ihre Foly GmbH
    Mehr Info:

    http://www.afol99.art

  17. #17

    overseas pharmacies online prescriptions https://medpills.bee-rich.com/

  18. #18

    overseas pharmacies online prescriptions https://edmeds.buszcentrum.com/

  19. #19

    cialis ingredient list https://cialis.webbfenix.com/

  20. #20

    cialis ingredient list https://cialis.lm360.us/

  21. #21

    Hochwertige Waren vom Produzent. Fabrikverkauf. Versand am gleichen Tag. Bis 95 % günstiger als auf dem Markt.

    Müllsäcke Alle, Sandsäcke, Raschelsäcke, Spänesäcke,

    Kartonage, Luftpolstertaschen, Maxibrief,

    Abdeckplane, Abdeckfolie, Baufolie,

    Alufolie – Frischhaltefolie, Alu Klebeband – Aluband,

    Abklebeband, Malerkrepp, Klebeband mit Folie, Malerkrepp mit Folie,

    Antirutsch Streifen, Klebebänder Alle, Gewebeband, Papierklebeband,

    Ddoppelseitiges Klebeband, Schaumklebeband, Reflektorband, Absperrband,

    Kantenschutz, Kantenschutzprofil, Abdeckhaube, Palettenhaube,

    Reifentüten, Umzugsdecken, Möbeldecken,

    Alles für Umreifung, Umreifungsband, Haspelspanner, Klemmen,

    Stretchfolie, Handstretchfolie, Maschinenstretchfolie

    Unkrautvlies, Malervlies, Renoviervlies,

    Luftpolsterfolie, Alu Luftpolsterfolie, Schaumfolie, Alu Schaumfolie,

    Sichtschutz, Sonnenschutz, Windschutz,

    Glasschutzfolie, Fensterschutzfolie,

    Katzenstreu alle Sorten, Arbeitshandschuhe und Vieles mehr

    auf http://www.alfi001.ru

  22. #22

    cialis online no prescription https://cialis.studiowestinc.com/

  23. #23

    cialis online no prescription https://cialis.mrdgeography.com/

  24. #24

    best stromectol india https://ivermectin1st.com/

  25. #25

    hydroxychloroquine and kidney disease https://hhydroxychloroquine.com/

  26. #26

    purchase vidalista http://vidallista.com/

  27. #27

    There is obviously a bunch to realize about this. I assume you made some good points in features also.

    http://www.vreyrolinomit.com/

  28. #28

    Yesterday, while I was at work, my cousin stole my apple ipad and tested
    to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she
    has 83 views. I know this is completely off topic but I had to share it with someone! http://antiibioticsland.com/Bactrim.htm

  29. #29

    hello there and thank you for your information – I’ve definitely picked up anything new from right here. I did however expertise some technical points using this web site, as I experienced to reload the web site lots of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I’m complaining, but slow loading instances times will very frequently affect your placement in google and could damage your quality score if advertising and marketing with Adwords. Well I’m adding this RSS to my email and could look out for much more of your respective exciting content. Ensure that you update this again soon..

    http://www.zortilonrel.com/

  30. #30

    canadian pharmacy sildenafil 100mg https://eunicesildenafilcitrate.com/ sildenafil online australia

  31. #31

    where to buy viagra online viagra online usa
    viagra discount

  32. #32

    purchasing tadalafil online – tadalafil 40 mg reviews tadalafil 20

  33. #33

    what is tadalafil https://elitadalafill.com/ order tadalafil

  34. #34

    cheap vardenafil https://vegavardenafil.com/ vardenafil- vardenafil tablet, film coated

  35. #35

    buy hydroxychloroquine online https://hydroxychloroquinex.com/

  36. #36

    me encantei com este site. Pra saber mais detalhes acesse o site e descubra mais. Todas as informações contidas são informações relevantes e exclusivos. Tudo que você precisa saber está ta lá.

    https://corporality.global/

  37. #37

    Your All In One Solution For Creating All The Content You’ll Ever Need.

    Proprietary AI Turns YouTube Videos Into Traffic Getting Articles At The Press Of A Button!

    We’ve Been Getting Free Autopilot Traffic From Google Without SEO Experience For Over 2 Years By Converting Others YouTube Videos Into Articles…

    https://warriorplus.com/o2/a/gmvfs/0

  38. #38

    I’ve read a few good stuff here. Certainly worth bookmarking for revisiting. I surprise how much effort you put to make such a excellent informative web site.

    http://www.easoar-soon.com

  39. #39

    Merely wanna admit that this is very helpful, Thanks for taking your time to write this.

    http://www.vreyrolinomit.com/

  40. #40

    Do you need clients?

    We compiled some of the world’s top databases for you at ridiculous low prices. $49 for any of our databases or $99 for all 16 databases!

    Visit BestLocalData.com

    Regards,
    Fay

  41. #41

    I am continually searching online for posts that can facilitate me. Thx!

    https://allcreditcarloans.co/car-interest-rates/

  42. #42

    Thank you for sharing excellent informations. Your website is so cool. I am impressed by the details that you have on this blog. It reveals how nicely you understand this subject. Bookmarked this web page, will come back for extra articles. You, my pal, ROCK! I found simply the information I already searched all over the place and simply couldn’t come across. What a great web-site.

    https://allcreditcarloans.co/auto-finance-calculator/

  43. #43

    Have you ever heard of second life (sl for short). It is basically a video game where you can do anything you want. SL is literally my second life (pun intended lol). If you would like to see more you can see these Second Life websites and blogs

    beth.typepad.com/beths_blog/2007/05/second_life_in_.html

  44. #44

    Have you ever heard of second life (sl for short). It is essentially a online game where you can do anything you want. Second life is literally my second life (pun intended lol). If you would like to see more you can see these Second Life websites and blogs

    kellimcgraw.com/2009/06/

  45. #45

    Hey!

    BestLocalData has an amazing special. 16 databases for $99.

    LinkedIn(43million records) USA B2B (28 million companies), Australia, South Africa, UK, Germany and all of that included.

    Instant delivery!

    https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7S34LZQSKKQHG

    Or check out more on our website!

    Regards,
    Roland

  46. #46

    order cialis online no prescription https://cialis.stdstory.com/

  47. #47

    order cialis online no prescription https://cialis360.jueriy.com/

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。