Skipping Linux system disclaimer when ssh'ing


Recommended Posts

Hi all,

 

Does anyone happen to know a way of skipping a typical Linux system disclaimer -- verbiage about how super duper this server is and if you do anything we don't like then it's a one way trip to Guantanamo -- when SSH'ing to a server? Having combed my way through various "-o" switches, I have not found anything suitable. Basically, what I am trying to do is to send to send a remote command to another server via SSH with what comes back being assigned to a variable. However, together with the output of the command, the ssh login disclaimer is also being returned, which is unwanted, because working around that would create extra work. As such, is it something that can be suppressed (without being turned off at the host level)?

 

Thank you in advance.

Isn't just the regular MOTD? That's located in /etc/motd

 

Nope, it's not MOTD. The wall of text presented when SSH'ing seems to be composed of this "private property, unauthorised access, blah blah blah", last login date and location, followed by MOTD and list of last X logins. However, when sending an SSH with a command from another host, only the first part is returned (together with command output).

I think if you set up ssh keys (passwordless login), you can skip over these.

I'm curious, which distro are you seeing this on? I get the failed login one in Fedora, but otherwise I jump straight to a prompt.

 

I already have password-less login, but it still loads the disclaimer. I am seeing this on RHEL 6.2.

Try catting /etc/issue.net and see if that's the text.

 

(Or /etc/issue but I think that's local logins.)

 

Bingo, the text being displayed is in /etc/issue. Can it be suppressed during when firing off an SSH or is that a setting on the host that would need turning off locally?

you could just remove it from that file on the host

 

so ssh into the host and edit it :) if your have the privs

 

Figured out that using "-q" with the SSH command skips it. I'll mark Eric's last post as answer, because that pointed me to the right file that led to the solution. Thanks to everyone who contributed :)

This topic is now closed to further replies.
  • Posts

    • I agree, especially if it is cloud sourced, like this one is.. but I wouldn't say no to a local AI assistant similar to the Zettlab one which would be really helpful with my large Photos library, but also to perform tasks like installing Docker apps rather than me having to do it via Docker Compose, but I don't think we're quite there yet. Synology Photos is somewhat AI, you can ask it to search for certain people (if you have tagged them and it will attempt to match similar photos to the person) and if you put a search term in for "cars" for example, it will show you all photos with a car.
    • I doubt that Google will keep the same price... it may go up from that list published.
    • Sennheiser's audiophile grade HD 600 hits lowest ever price on Amazon Prime Day 2026 by Sayan Sen If you are in the market for high-quality audiophile-grade over-ear headphones then Sennheiser's HD 600 are a great choice for sure, especially today on Prime Day 2026 as the product has hit its lowest ever price (purchase link under the specs table down below). The Sennheiser HD 600 has long been regarded as a reference headphone for listeners seeking a detailed and natural listening experience. It is an open-back design that is built around the idea of acoustic transparency which is essentially said to allow sound waves to move freely for a more spacious and accurate presentation by reducing turbulence and the type of distortion that can result from it. At the heart of the product is Sennheiser’s proprietary driver system featuring a 42 mm driver paired with a lightweight diaphragm and aluminum voice coils. The company says this design helps deliver fast response times and better articulate sound across the audible frequency range. Comfort and durability are also key aspects of the HD 600 as the headphones feature soft velour ear pads designed for extended listening sessions. The HD 600 comes with a detachable 3-meter cable, a 6.3 mm stereo connector, and a 3.5 mm adapter for compatibility with a wide range of audio equipment. The technical specs of the Sennheiser HD 600 are given in the table below: Specification Value Transducer Principle Dynamic, Open-Back Ear Coupling Circumaural (Over-Ear) Frequency Response 12 Hz – 40,500 Hz Sound Pressure Level (SPL) 97 dB (1 V) Impedance 300 Ω Total Harmonic Distortion (THD) < 0.1% (1 kHz, 1 V) Cable Length 3 m (9.8 ft) Connector 3.5 mm Stereo Jack Plug Included Adapter 6.3 mm (1/4") Stereo Jack Adapter Weight 260 g Magnetic Field Strength 1.8 mT Driver Size 42 mm Dynamic Driver Diaphragm Size 38 mm Get it at the link below: Sennheiser HD 600: $237.00 (Sold by Electronics Expo, Shipped by Amazon US) (Was: $449.95) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases
    • So the card is targeted at headphone users - so the review should be from someone that uses this - maybe I can review a card next time.
  • Recent Achievements

    • One Month Later
      timbobit earned a badge
      One Month Later
    • One Month Later
      nates earned a badge
      One Month Later
    • Week One Done
      Almohandis earned a badge
      Week One Done
    • Rookie
      dorf went up a rank
      Rookie
    • First Post
      mike_rumble earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      476
    2. 2
      +Edouard
      170
    3. 3
      PsYcHoKiLLa
      104
    4. 4
      Michael Scrip
      88
    5. 5
      Steven P.
      70
  • Tell a friend

    Love Neowin? Tell a friend!