0

I work with a farm of solaris 10 servers with some inconsistent behaviors in terms of displaying banners/motd.

This time, I am trying to do scp from one server to another. Between some servers I get no banner, and some I do.

I have already tried:

  • creating .hushlogin file
  • scp -q
  • scp -o LogLevel=Error
  • PrintMotd no in /etc/ssh/sshd_config
  • LogLevel QUIET in /etc/ssh/ssh_config

I am already not getting banners when using ssh, but the banner with scp still persists in some servers, and I'd like to find a way to turn it off.

I haven't got admin rights but can make requests for changes to specific configs.

scp session sample:

usera@server20$ scp a.sh server43:/tmp
###################################################################
# This system is for the use of authorized users only.            #
# Individuals using this computer system without authority, or in #
# excess of their authority, are subject to having all of their   #
# activities on this system monitored and recorded by system      #
# personnel.                                                      #
#                                                                 #
# Anyone using this system expressly consents to such monitoring  #
# and is advised that if such monitoring reveals possible         #
# evidence of criminal activity, system personnel may provide the #
# evidence of such monitoring to law enforcement officials.       #
###################################################################

WARNING: Access to this computer system is limited to authorised users only.
Unauthorised users may be subject to prosecution under the Crimes
Act or State legislation.

a.sh                 100% |***********************************************************************************************************|   602       00:00
usera@server20$

ssh session sample from a server in the farm:

usera@server20$  ssh server43
LI002: usera is allowed 2 concurrent logins
Last login: Tue Jun 16 2015 17:30:05 from pts/2
server43:usera>

ssh session sample from outside the farm:

login as: usera
###################################################################
# This system is for the use of authorized users only.            #
# Individuals using this computer system without authority, or in #
# excess of their authority, are subject to having all of their   #
# activities on this system monitored and recorded by system      #
# personnel.                                                      #
#                                                                 #
# Anyone using this system expressly consents to such monitoring  #
# and is advised that if such monitoring reveals possible         #
# evidence of criminal activity, system personnel may provide the #
# evidence of such monitoring to law enforcement officials.       #
###################################################################

WARNING: Access to this computer system is limited to authorised users only.
Unauthorised users may be subject to prosecution under the Crimes
Act or State legislation.

Using keyboard-interactive authentication.
Password:
LI002: usera is allowed 2 concurrent logins
Last login: Tue Jun 16 2015 18:40:41 from pts/1
server43:usera>
  • You get the banner with scp, but you do not get it with ssh on the same server with the same account? – Martin Prikryl Jun 15 '15 at 12:41
  • Yes. That is correct. – user55570 Jun 15 '15 at 22:31
  • Are all the servers at the same patch/revision level? Especially with respect to SSH? – Andrew Henle Jun 16 '15 at 0:36
  • yes, i believe they are. Both report 5.10 Generic_150400-12 on uname -a – user55570 Jun 16 '15 at 1:44
  • SUNWsshcu, SUNWsshdr, SUNWsshdu, SUNWsshr, SUNWsshu reports 11.10.0,REV=2005.01.21.15.53 – user55570 Jun 16 '15 at 1:52
0

Did you try this option: -o LogLevel=quiet

  • Tried it. The banner still shows. – user55570 Sep 21 '15 at 1:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.