SSH Warning Welcome message?


 
Thread Tools Search this Thread
Operating Systems Linux SSH Warning Welcome message?
# 1  
Old 07-28-2010
SSH Warning Welcome message?

Hi all,
I just configured automatic login between two servers following this article:
When I execute the following command:

PHP Code:
ssh REMOTE "/script/output.sh" 
I get:

Code:
Warning: This system is restricted to authorized users for business purposes. 
Unauthorized access is a violation of the law. 
This service may be monitored for administrative and security reasons. 
By proceeding, you consent to this monitoring.

PHP Code:
This is the output from remote host
How can I hide the Warning?

Thanks in advance,
Evan

Last edited by jim mcnamara; 07-28-2010 at 01:56 PM..
# 2  
Old 07-28-2010
That is in the sshd_config file on the remote node.
you will see a line like:
Code:
Banner /etc/issue

/etc/issue can be anyfilename that has the message.
# 3  
Old 08-27-2010
ssh_welcome

1.$ vi /etc/ssh/ssh_welcome(for creating a new welcome file )
2.$ vi /etc/ssh/sshd_config(edit the banner line with Banner /etc/ssh/ssh_welcome)
3.$/etc/init.d/ssh restart

thats enough
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ssh from a ksh returning not found message

Script name is test.ksh I know that that the ssh command is working properly, this can be verified by the value returned in respond variable. It is unique to the remote server _____________________________________________________ respond=$(ssh $remoteHost find... (3 Replies)
Discussion started by: Adagio
3 Replies

2. Shell Programming and Scripting

Run cron on ssh, error message

how to run the script below * * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron" when i run the script, the error message show as below: $ * * * * * /usr/bin/wget -O - -q "http://website.com/?q=admin/settings/scheduler/cron" -sh: CHANGELOG.txt: not found $ 30 15 * * *... (11 Replies)
Discussion started by: dolbyater
11 Replies

3. HP-UX

Warning message in HP-UNIX

Hi, After i exit from crontab file using Esc+wq, i get a message like " warning: commands will be executed using /usr/bin/sh " Can somebody tell me what it means ? Thank you (9 Replies)
Discussion started by: Maddy123
9 Replies

4. AIX

How to desactivate message SSH?

hello, When i connect to a server with ssh command ("ssh -q xxxx" / AIX 6.1) . I always have the variable environnement display: Environment: USER=root LOGNAME=root LOGIN=root HOME=/root ... (8 Replies)
Discussion started by: khalidou13
8 Replies

5. Shell Programming and Scripting

How do display a warning message?

Hello, I am teaching myself shell scripting and I was wondering if there was a way to rename a file and display a warning or prompt message? And if you had a file like /home/me/blah/ for example, what are the ways to use the CD to get to /me? Would it be ../home/me? Are there other ways to... (4 Replies)
Discussion started by: kris2010
4 Replies

6. UNIX for Dummies Questions & Answers

Help to eliminate a warning message

Hi all, I'm trying to run this command in a script: utenti_conn=`ssh $MYUSER@$MYTRAP01IP sudo cat /opt/accenture/trapwriter/data/TMDVOD\-1\-\`date \+\%Y\%m\%d\`\* /opt/accenture/trapwriter/data/TMDBTV\-1\-\`date \+\%Y\%m\%d\`\*|awk -F'|' '{print $7}'|sort |uniq|wc -l` and in output I... (1 Reply)
Discussion started by: idro
1 Replies

7. UNIX for Dummies Questions & Answers

warning message

I have received a warning message, does anyone know what this means? warning: userdel processing continues resource: /var/opt1k/sco/unix/5.0.6 Ga/etx/group-t could not be allocated due to : cannot securly create new file. (0 Replies)
Discussion started by: qphillips
0 Replies

8. UNIX for Dummies Questions & Answers

warning message in SAM

On running ‘Disk Devices’ tools under ‘Disks and File Systems’ option of System Administration Manager (SAM) in our UNIX Server (HP 9000 running HPUX B.11.11 U) a warning message appeared. The message that appeared reads as follows “The Logical Volume Manager shows this device file,... (3 Replies)
Discussion started by: mhbd
3 Replies

9. Filesystems, Disks and Memory

Warning Message.

I have had trouble with my PC, due to construction failure I from my dealer or a power-blast over the net I had a broken MotherBoard, CPU and Memory, So I had to get new ones. Now I'm having a 2000Mhz CPU an ASUS P4S... {I think it's P4S500} and new DDR- memory My PC gives a warning-message... (3 Replies)
Discussion started by: Silver
3 Replies

10. UNIX Desktop Questions & Answers

Warning message ioctl

Has anyone over seen this message on bootup? When booting up, I get: " Warning: lckdioctl: unknown ioctl cmd:5 ". It scrolls down the screen 5 - 10 times, the I finally get a login. It is also posting to my syslog file. The system came up, but I am still getting the message... (1 Reply)
Discussion started by: Diana
1 Replies
Login or Register to Ask a Question