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.

  On 09/10/2014 at 13:38, Eric said:

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).

  On 09/10/2014 at 22:32, cybertimber2008 said:

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.

  On 10/10/2014 at 12:03, Eric said:

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?

  On 10/10/2014 at 14:16, Haggis said:

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

    • Microsoft isn't happy you're using unsupported Exchange versions, announces final deadline by Usama Jawad Earlier this month, Microsoft announced Exchange Server Subscription Edition (SE), which is the official transition of the product to the Modern Lifecycle Policy, where software is continuously serviced without an end-of-life date, as long as you keep it updated. It also revealed surprising, but brief, Extended Security Updates (ESUs) for Exchange 2016 and 2019. As it winds down support for these products, the company has expressed some displeasure that some customers are using even older and, obviously, unsupported versions of Exchange. In a blog post, the company has noted that it currently offers migration tools that enable the migration of public folders from on-premise Exchange 2013 or older versions to Exchange Online. This is by design, but Microsoft is now changing its tune on the topic. Starting from October 1, 2025, customers leveraging Exchange 2010 or older versions of the software will not be allowed to use Microsoft's tools to migrate their public folders to Exchange Online. Microsoft believes that this deprecation will reduce reliance on legacy systems and enhance "long-term service reliability". Any migrations that are attempted after the aforementioned date will fail, so Microsoft has urged customers to complete their migrations as soon as possible. If customers want to move their data to Exchange Online after October 1, they will first have to upgrade to a newer Exchange version, which is Exchange 2013, but it is important to keep in mind that supported versions are 2016 and 2019. Microsoft has emphasized in a rather stern tone that it does not encourage using unsupported versions of Exchange Server at all, and it has just put out this advisory because it is aware that public folder migrations from legacy systems are currently active, even though they shouldn't be. Needless to say, customers should upgrade to Exchange Server 2016 or 2019 as quickly as possible, but ideally, they should consider moving to Exchange Server SE at this point, considering that the other two versions are running out of support soon, too.
    • A little bit, yeah, if you ask me. Granted, he has the right to be upset with this jerk user that attacked him, but why drop the entire project just because of ONE person? Seems a little exaggerated.
    • Xbox July Update brings PC app cloud upgrades and Rewards support by Pulasthi Ariyasinghe The Xbox team at Microsoft has another major series of updates hitting its platforms. The Xbox July Update is primarily bringing new features to the PC application, while cloud gaming services are also being upgraded. A lot of these additions were a part of Insider testing sessions previously, but now they are ready for prime time. First off, Game Pass Ultimate members can now stream supported games over the cloud, as long as they own a copy on the Xbox store. The Stream Your Own Game feature can be accessed via the Cloud Gaming section on the Xbox PC app. The feature now boasts over 250 supported games too, with recent additions including classic Assassin's Creed titles, LEGO games, and the Saints Row series. Upcoming games to the lineup include RoboCop: Rogue City – Unfinished Business, Tetris Effect Connected, Wo Long Fallen Dynasty, and more. Check here to get a full list of games. Don't forget that cross-device play histories on the app also landed for Xbox Insiders earlier this month, letting players see what games they have been playing regardless of console, PC, or cloud Xbox platform being used. Another new feature announced today as landing on the PC app this month is Rewards with Xbox. Only available in select markets and only for those above 18, Rewards can now be found in the Home section with easy access to checking out how to get more points, track progress, and more. The Xbox and Antstream Arcade joint venture, the Retro Classics app, is gaining seven more games too. These are Caesar, Conquests of Camelot: The Search for the Grail, Gabriel Knight: Sins of the Fathers, Hard Head, Okie Dokie, Skate Boardin’, and Skeleton+. Lastly, mouse and keyboard as well as touch controls continue to roll out for more games, with Police Simulator: Patrol Officers getting support for the former while South of Midnight has gained the latter.
  • Recent Achievements

    • Week One Done
      NeoWeen earned a badge
      Week One Done
    • One Month Later
      BA the Curmudgeon earned a badge
      One Month Later
    • First Post
      Doreen768 earned a badge
      First Post
    • One Month Later
      James_kobe earned a badge
      One Month Later
    • Week One Done
      James_kobe earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      669
    2. 2
      ATLien_0
      253
    3. 3
      Xenon
      165
    4. 4
      neufuse
      144
    5. 5
      +FloatingFatMan
      117
  • Tell a friend

    Love Neowin? Tell a friend!