Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

SSH and sys$announce

 
SOLVED
Go to solution
Piet Timmers_1
Frequent Advisor

SSH and sys$announce

An other SSH question.

When using telnet (or DECnet, LAT etc.) the user gets the sys$announce on his terminal.

Is there a way to get this when using SSH to log in.

Thanks.

Piet
8 REPLIES 8
Heinz W Genhart
Honored Contributor
Solution

Re: SSH and sys$announce

Hi Piet

You can define the BannerMessageFile in tcpip$ssh_device:[tcpip$ssh.ssh2]sshd2_config.

For example:
BannerMessageFile /SYS$SYSDEVICE/VMS$COMMON/SYSMGR/ANNOUNCE.TXT

Regards

Geni
Piet Timmers_1
Frequent Advisor

Re: SSH and sys$announce

Heinz, thanks.

Now I know to search on the internet to the string bannermessagefile.

It works, but this message is displayed after the login prompt, and before the password prompt. This not as it works when using telnet or DECnet login.

Can this configured to get the same behaviour als with telnet logins?

Thanks.

Piet
Heinz W Genhart
Honored Contributor

Re: SSH and sys$announce

Hi Piet

I do not agree. The banner message appears before the login Prompt.

Here an example:

$ ssh system@gdc00y
******************************************************************************

Unauthorized access is prohibited. Misuse will be prosecuted.

Unberechtigter Zugriff ist verboten. Allfälliger Missbrauch wird geahndet.

Accès interdit sans autorisation. Tout abus sera puni.

L'accesso senza autorizzazione è vietato. Ogni abuso sarà punito.
******************************************************************************

IX Admin Server


system's password:


Regards

Geni
Piet Timmers_1
Frequent Advisor

Re: SSH and sys$announce

In your example this is correct, but we are using a terminal emulator (putty, reflection) to login.

First a question for "login as:" appears, then after entering the user name, the banner message will be displayed.

Greetings,

Piet
Richard Whalen
Honored Contributor

Re: SSH and sys$announce

The terminal emulator may be suppressing, or delaying the message. Though the SSH2 protocol has provisions for messages both before and after the authorization of the user, not all clients handle the messages in the same way.
Heinz W Genhart
Honored Contributor

Re: SSH and sys$announce

Hi Piet

We are also using putty. The string

login as:

is coming from putty and at this time putty did not yet connect to the remote node.

But you can define the username which putty is using to connect. See in putty on the left hand side 'Connection', 'Data' and there define the Auto-login username.

After defining the auto-login username it looks like this:


Using username "geni".
******************************************************************************


Unauthorized access is prohibited. Misuse will be prosecuted.

Unberechtigter Zugriff ist verboten. Allfälliger Missbrauch wird geahndet.

Accès interdit sans autorisation. Tout abus sera puni.

L'accesso senza autorizzazione è vietato. Ogni abuso sarà punito.
******************************************************************************

Admin Server


geni@gdcw7d's password:


Regards

Geni
Steven Schweda
Honored Contributor

Re: SSH and sys$announce

I get "SYS$ANNOUNCE" on my system, although
it's not exactly what I'd like. Around here:

alp $ ssh alp
Authentication successful.
@ SYS$MANAGER:ANNOUNCE.TXT

[... other [sy]login.com stuff ...]


I enjoy the lameness of this behavior so much
that I'll be sad if/when it ever gets done
right.
Piet Timmers_1
Frequent Advisor

Re: SSH and sys$announce

Heinz,

The string "login as:" is comming from putty, and putty has not yet made a conmnection to the host.

When I connect using putty, I see the string "login as:" and a new process tcpip$ss_bg.... om my OpenVMS server.
So putty already has a connection to the host?

Another thing: when I make a connection using putty, I see the "login as:" prompt.
At that moment a new process is created. When I do not answer to this question, how long does it take before that process is being stopped?
On a telnet login, you get "error reading command input" after 20 seconds.
So when I start very many putty sessions, connect to my host, it will be overloaded by tcpip$ss_bg.... processes, and nobody is able to login, without using a username or password, or not?

Greetings,

Piet