Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

jdavidb
  (email not shown publicly)
http://voiceofjohn.blogspot.com/

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Wednesday November 15, 2006
11:07 AM

ssh motd

[ #31611 ]

Anyone know what's the intelligent way to connect to a machine with ssh and not see the MOTD? I'm currently redirecting stderr to /dev/null, but obviously that means I miss some errors. The -q option doesn't do it. I can't see anything in the ssh manpage to help. I don't have access to the server config files in question to tell them not to print the MOTD. I can't find a way to pass my ssh client an option to pass to the server to tell it not to do that, but I'm hoping it exists.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.

  • ssh won't know anything about the source of the characters, it just transports them. I think you want to create a .hushlogin file to tell the shell not to show you that.

    • Unfortunately I don't have shell access. I'm accessing with SFTP. I guess maybe I can ask the vendor of the box to create the file, though. Thanks!

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • You can't transfer a file over SFTP?
        • I can (although I thought I wouldn't have write access). I tried it; it doesn't work. My original response was addressing the fact that the shell was showing me the motd. It's not the shell showing it; it's the sshd. I'm not accessing a shell at any point, to my knowledge. So I guess that's why .hushlogin doesn't work. But thanks for trying to help. At least I learned something. :)

          --
          J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
  • Try creating a .hushlogin file in the home directory of the account you're connecting to.

    -Matt