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

    • Apple and Tesla trade secrets reportedly exposed following a Tata Electronics cyberattack by Hamid Ganji Image via Depositphotos.com Tata Electronics has confirmed that it detected a cybersecurity incident in some of its systems. The Indian company is a manufacturing partner of both Apple and Tesla, and the incident may have exposed some trade secrets belonging to the two American companies. The World Leaks ransomware group is said to be behind the attack, and it has reportedly posted up to 200,000 files on the dark web, including component designs and specification documents related to Apple and Tesla products. Tata Electronics told Reuters that its response protocols were deployed immediately and that the “incident has had no impact on our operations across businesses, which remain unaffected.” The ransomware group reportedly sent a ransom demand to Tata Electronics, while Apple has launched an investigation into the incident. World Leaks claims it stole more than 200,000 files totaling over 630GB from Tata Electronics. Some database files on the ransomware group’s website are titled "com.apple.factorydata," which could refer to Apple’s iPhone production operations in India. Moreover, some documents reportedly contain material specifications and quality inspection standards for iPhone circuit board components. However, Apple is not the only affected company. A folder found in the World Leaks database is titled "NV36 Chargeport Controller - North America," which may refer to Tesla Model Y components. Additionally, other files in the database reportedly contain drawings related to Tesla’s Project Highland, the internal codename for the EV maker’s updated Model 3 sedan. To support the authenticity of the stolen files, World Leaks has published documents containing footers that read: "This document contains proprietary and confidential information of Apple Inc." and "information contained herein is deemed confidential, proprietary, and a trade secret of Tesla Inc." Cybersecurity researcher Rajshekhar Rajaharia told Reuters that the database also contains emails, event logs spanning several years, and passport copies of employees, including foreign nationals. Both Tesla and Apple have declined to comment on the scale of the incident.
    • Last time I used Pascal was in college about 40 yrs ago, programmed an inventory database for my exam.
    • If they don't sell enough of the 1st gen then there won't be a 2nd gen
    • Epic fail, should've added an eSata port on the back, also if the memory/NVME are soldered then they're hardly gonna sell any, first thing most people do with their Steamdeck is, or used to be, replacing the NVME with a 2TB one. At that price they should, possibly for the first time, offer an installments option, say 24 months, they may sell a lot if they do. I'm sure they would have no shortage of credit companies willing to partner.
  • Recent Achievements

    • 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
    • Dedicated
      tuben earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      487
    2. 2
      +Edouard
      204
    3. 3
      PsYcHoKiLLa
      94
    4. 4
      Michael Scrip
      91
    5. 5
      neufuse
      71
  • Tell a friend

    Love Neowin? Tell a friend!