1826362 Members
4490 Online
109692 Solutions
New Discussion

SSH Question

 
SOLVED
Go to solution
Siddhartha Sinha
Occasional Advisor

SSH Question

I have a Server running ssh. Have two interface. lan0 is connected to the outside world thru ssh tunnel ( all the other ports are blocked) and lan1 to intranet and everything is open. I use IPFileter to control this. And everything is working good so far. Now I have a question. Whenever I run telnet xx.xx.xx.xx 22 from my laptop it shows me that ssh is running on port 22 of that server and the version information. Is there any way to change this default behaviour. Or displaying something of my own or no reply like the other blocked ports. I am running telnet command from outside world to check that. All the other ports are blocked. I ran some network scanner on that server and it looks so far good. I need to run ssh server on that box as it is gateway to our intranet.
3 REPLIES 3
skt_skt
Honored Contributor
Solution

Re: SSH Question

That is the default behaviour from sshd s/w.

refer /opt/ssh/etc/sshd_config (banner or PrintMotd option )or man sshd_config
Ivan Ferreira
Honored Contributor

Re: SSH Question

According to this document, you can only change this behaviour in the source code:

www.mhprofessional.com/downloads/products/0072227869/0072227869_ch03.pdf

Also, that information is used by the ssh client.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Siddhartha Sinha
Occasional Advisor

Re: SSH Question

Thanks both of you. I wanted to know whether I can change that default behaviour. I will try that source code stuff later. Thanks again.