[FUGSPBR] [FUGSPBR] Versão SSH

Ricardo A. Reis ricardo_bsd em yahoo.com.br
Sex Dez 20 08:57:19 BRST 2002


Patrick Tracanelli wrote:
> Pra nao mostrar a versao do ssh, acredito que soh recompilando telnet na 
> porta do ssh vai retornar algo como
> 
> SSH-2.0-OpenSSH_3.4p1 meu ssh 2
> 
> Mauricio Hiroaki wrote:
> 
>> Como eu faco para o ssh não retornar a versao quando faco telnet ip 22 
>> para o host?

    A maneira mais facil e aconcelhada e recompilar o openssh logo apos 
modificar o arquivo version.h

ROOT(/root)[8:46]-FreeBSD$ cd /usr/ports/security/openssh && make install
 >> openssh-3.5.tgz doesn't seem to exist in /usr/ports/distfiles/.
 >> Attempting to fetch from ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/.
Receiving openssh-3.5.tgz (405198 bytes): 100%
405198 bytes transferred in 3.5 seconds (112.40 kBps)
 >> openbsd28_3.5.patch doesn't seem to exist in /usr/ports/distfiles/.
 >> Attempting to fetch from ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/.
Receiving openbsd28_3.5.patch (51352 bytes): 100%
51352 bytes transferred in 1.7 seconds (29.50 kBps)
===>  Extracting for openssh-3.5
 >> Checksum OK for openssh-3.5.tgz.
 >> Checksum OK for openbsd28_3.5.patch.
===>   openssh-3.5 depends on shared library: crypto.3 - found
===>  Patching for openssh-3.5
===>  Applying distribution patches for openssh-3.5
===>  Applying FreeBSD patches for openssh-3.5
^Z
Suspended

Quando chegar nessa parte da um C-z

Edita o arquivo version.c

----------------------------------------------------------------------
ROOT(/usr/ports/security/openssh)[8:46]-FreeBSD$ vi work/ssh/version.h
/* $OpenBSD: version.h,v 1.35 2002/10/01 13:24:50 markus Exp $ */

#define SSH_VERSION     "OpenSSH_666"
----------------------------------------------------------------------

E logo depois da um fg

Resultado!!! :-)))


NIB(/home/nib)[8:46]-FreeBSD$ telnet 172.22.1.134 22
Trying 172.22.1.134...
Connected to 172.22.1.134
Escape character is '^]'.
SSH-1.99-OpenSSH_666

Protocol mismatch.
Connection closed by foreign host.



Atenciosamente Soulofblack



_______________________________________________________________________
Busca Yahoo!
O melhor lugar para encontrar tudo o que você procura na Internet
http://br.busca.yahoo.com/
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd