De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.
Colaboração: Rubens Queiroz de Almeida
Data de Publicação: 29 de Setembro de 1997
Em uma dica anterior, foi abordado o programa ssh, que provê conexões encriptadas entre duas máquinas em uma rede TCP/IP.
Uma feature muito útil, é o uso do programa ssh no modo debug. Serve para resolver problemas de conexão, por exemplo, e fornece muitas outras informações sobre como a conexão entre as duas máquinas é negociada.
E finalmente, ao se encerrar a conexão, o ssh exibe na tela estatísticas sobre a conexão.
Abaixo estou incluindo uma amostra de uma conexão entre duas máquinas usando o ssh:
queiroz@netway:[/home/queiroz/dicas-l]ssh -v obelix SSH Version 1.2.17 [powerpc-ibm-aix4.1.4.0], protocol version 1.5. Standard version. Does not use RSAREF. Reading configuration data /etc/ssh_config ssh_connect: getuid 1020 geteuid 0 anon 0 Connecting to obelix [143.106.10.2] port 22. Allocated local port 1023. Connection established. Remote protocol version 1.5, remote software version 1.2.20 Waiting for server public key. Received server public key (768 bits) and host key (1024 bits). Host 'obelix' is known and matches the host key. Initializing random; seed file /home/queiroz/.ssh/random_seed Encryption type: idea Sent encrypted session key. Received encrypted confirmation. Trying rhosts or /etc/hosts.equiv with RSA host authentication. Remote: Accepted by .rhosts. Received RSA challenge for host key from server. Sending response to host key RSA challenge. Remote: Rhosts with RSA host authentication accepted. Rhosts or /etc/hosts.equiv with RSA host authentication accepted by server. Requesting pty. Failed to get local xauth data. Requesting X11 forwarding with authentication spoofing. Requesting shell. Entering interactive session. Last login: Fri Sep 26 12:21:12 1997 from netway.unicamp.b Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996 Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996 queiroz@obelix.unicamp.br:[/home/obelix/supsof/queiroz]^D Connection to obelix closed. Transferred: stdin 1, stdout 238, stderr 30 bytes in 1.6 seconds Bytes per second: stdin 0.6, stdout 151.8, stderr 19.1 Exit status 0
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comentários