Hello everyone,
I'm having a hard time configuring a configuration template to add a banner to our Cisco switches. The CLI script fails because the SSH communication closes.
Here is the output of the deployment task:
Task is finished, following is the executing result. |
Device Name:[REDACTED]--Running Result:SSH connection closed |
|
<Command> conf t |
<Response Prompt> Enter configuration commands, one per line. End with CNTL/Z. [REDACTED](config)# |
|
|
|
<Command> banner login * |
<Response Prompt> [REDACTED](config)# |
|
|
|
<Command> ############################################################################ |
<Error> SSH connection closed |
<Response Prompt> [REDACTED](config)# |
|
|
|
|
My googlefu failed to produce results showing the proper method of deplying a banner similar to this one
######################################################################
# #
# YOU ARE ACCESSING A SYSTEM UNDER THE RESPONSIBILITY OF [REDACTED] #
# #
# NO NOTION OF CONFIDENTIALITY - USE OF THE SYSTEM INDICATES #
# CONSENT TO MONITORING, RECORDING, AND AUDITING OF #
# ACTIVITY; AND UNAUTHORIZED USE IS PROHIBITED AND SUBJECT TO #
# UNAUTHORIZED USE IS PROHIBITED AND SUBJECT TO CRIMINAL, CIVIL, OR #
# ADMINISTRATIVE PROCEEDINGS AND/OR SANCTIONS. #
######################################################################
Thank you for your help