Re: simulate connection with netcat
Felipe Martins <[email protected]> Mon, 17 Jan 2011 17:39:52 -0200
| Newsgroups | gmane.network.openssh.general |
|---|---|
| Message-ID | <[email protected]> |
When you try to connect to a SSH Server it exchanges a session key, you would have to give that to the server before authentication. Like Salva said, it's far more complicated than that. Best Regards --- Felipe Martins Security Analyst Skype: martins.felipe URL: http://www.felipemartins.info/ E-mail: [email protected] On 17/01/2011 15:43, Salvador Fandino wrote: > > > > ----- Original Message ---- >> From: "[email protected]"<[email protected]> >> To: [email protected] >> Sent: Sat, January 15, 2011 9:19:15 PM >> Subject: simulate connection with netcat >> >> Hello, >> >> my long-term intention is to write a cross-platform GUI-authpf-client >> without using libssh or libssh2. Before I get into that I'd like to simulate >> the ssh-connection/authentication via netcat. >> I took a look at the RFCs but don't get it working. >> >> % nc 127.0.0.1 22 >> SSH-2.0-OpenSSH_5.2 >> SSH-2.0-OpenSSH_5.2<-- entered by me >> ... a lot of text ... >> >> What do I enter now to authenticate? >> My attempts resulted in "Packet corrupt". > SSH uses a binary protocol. Getting authenticated is far more complex than > writting something at your keyboard by hand. > > You can find pointers to the related RFCs here: > http://en.wikipedia.org/wiki/Secure_Shell > > - Salva