1826290 Members
4439 Online
109692 Solutions
New Discussion

Re: Configuring SSH

 
SOLVED
Go to solution
Andrew Moody_1
Regular Advisor

Configuring SSH


Dear All

I'm experimenting with disabling telnet and forcing clients to connect through via ssh.

Following the un-pointed (and therefore unrewarded) excellent advice from SEP in this thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1008042
I've set up ssh it works, I'm happy. I've disabled telnet too.

However when we logged in via telnet I used to display a welcome message in the following way

[extract from inetd.conf]
-----------
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b/etc/foo
-----------

where the telnetd output the file foo to the screen before the login prompt.

Any idea's how to do this with ssh.

Cheers

Andrew

A sobering thought: What if, right at this very moment, I am living up to my full potential?
5 REPLIES 5
Patrice Le Guyader
Respected Contributor

Re: Configuring SSH

Hi Andrew,

Have you try to setup your message in /etc/motd ?

hope this helps
Kenavo
Pat
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Sung Oh
Respected Contributor
Solution

Re: Configuring SSH

Hi Andrew,

you can use /etc/ssh/sshd_config file Banner option to be modified to give you welcome message.

1. enable banner option
#Banner /some/path
to
Banner /etc/ssh/message

2. Create message file with your own welcome message

I hope this helps.

Sung
Sung Oh
Respected Contributor

Re: Configuring SSH

Hi Andrew,

I gave you the Linux ssh configuration instruction. here is HPUX

1. configure your sshd_config to enable printmotd option
from
printmotd no
to
printmotd yes

2. Modify /etc/motd file to write your own welcome message.

Regards,

Sung
Andrew Moody_1
Regular Advisor

Re: Configuring SSH


Pat - the simplest idea's eh? Thanks

Sung Ho - the banner works better for me in the instance than the motd way of doing it. the Motd method displays the info in wrong places for me whereas connecting via Reflections ssh the banner shows as a dialogue box so I can write some of the usual gubbins to display in there.


config files in /opt/ssh/etc not /etc as a pointer to anyone else looking for the same thing.
A sobering thought: What if, right at this very moment, I am living up to my full potential?
Sung Oh
Respected Contributor

Re: Configuring SSH

Hi Andrew,

I am glad that is worked for you and thank you for your feedback.

Sung