don't want banner displayed when using scp


 
Thread Tools Search this Thread
Operating Systems Solaris don't want banner displayed when using scp
# 1  
Old 03-02-2011
don't want banner displayed when using scp

Smilie

Is there a way to prevent the banner from displaying from the remote host when using scp? I see from the man pages that the '-o' option passes args to ssh and I've tried several variations of:

Code:
scp -o "-q" file remotehost:


Anybody got this to work?


Thanks in Advance
# 2  
Old 03-02-2011
According to my manpage scp supports -q without the -o, which should suppress not just ssh messages but also the progress meter.

Worst case, you can ditch such messages with scp file hostname: 2>/dev/null
# 3  
Old 03-03-2011
Quote:
Originally Posted by Corona688
According to my manpage scp supports -q without the -o, which should suppress not just ssh messages but also the progress meter.

Worst case, you can ditch such messages with scp file hostname: 2>/dev/null
True. I want the progress meter but not the banner from the remote system.
# 4  
Old 03-03-2011
Try creating a .hushlogin file in your home directory on the remote server:

Code:
touch ~/.hushlogin

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Banner causes scp to fail from script but not command line.

Hi, We have an interesting issue which is similar to the one in this thread, but that never provided a full answer. - Ohh apparently I can't post URLs till I have 5 posts, sorry. We have a simple script that copies files from one shelf to the other. Both shelves have an ssh banner defined. ... (3 Replies)
Discussion started by: RECrerar
3 Replies

2. Shell Programming and Scripting

Highlight the string displayed

Hi, Want to highlight the string displayed on the screen. ften="File selected" FB1="\e From the above code, String "File selected" gets highlighted, but the string in the next line does not get highlighted. I tried using FB1& FB2 variables but didn't worked out may be due to too... (1 Reply)
Discussion started by: milink
1 Replies

3. Shell Programming and Scripting

password getting displayed using sudo

Hi While doing the following command password is gettin dispalyed : ssh <host> "sudo command ; exit" .... while i type my password for 2nd its gettin displayed ... i tried stty -echo and stty echo ... still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies

4. UNIX for Dummies Questions & Answers

Date to be displayed in two digits

I want the date to be displayed in two digits. I have written a script to calculate yesterday's date. I'm getting the yesterday's date as 2009085. Desired output: 20090805 Find the script below: #!/bin/ksh ### Script to get Yesterday Date ############# Y=`date +'%Y'`... (6 Replies)
Discussion started by: venkatesht
6 Replies

5. Shell Programming and Scripting

How to disable banner displayed on ssh connect

Is there away to disable a banner/motd when connecting to a server via ssh? The reason I want to do this is that I have a script that issues multiple SSH connection to remote machines so as to invoke a script on the remote machine. The script runs fine on the remote machine its just that I... (1 Reply)
Discussion started by: davejavu
1 Replies

6. Shell Programming and Scripting

Password is getting displayed

My shell script which runs on solaris has an execution in it. Contents of shell script BEGIN : Executable_filename username/password@DBinstance parameter2 parameter3 Contents of shell script END : When i launch the shell script, it connects to database to gets few details.. In the... (3 Replies)
Discussion started by: shafi2all
3 Replies

7. HP-UX

swlist is not displayed in HP-UX

Hi swlist command is not displayed in HP-UX ..it displays swlist: Command not found. uname -a HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license :b: Best Regards vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies

8. Solaris

hostname not displayed

Hi, I posted a problem earlier on on how to change IP addresses on an E450. I was able to work around this and wanna say thanks to all who assisted. But now on my server, I get this error, trying to configure hosts..RPC timed out. Also, when I type on the command line, hostname, nothing is... (7 Replies)
Discussion started by: Ronny
7 Replies
Login or Register to Ask a Question