Re: simulate connection with netcat
[email protected] Wed, 19 Jan 2011 18:49:03 +0100
| Newsgroups | gmane.network.openssh.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks for all advises. I actually don't need a full ssh implementation. The thing a wanted was = a simple password-authentification for non-technical users without = support for rsa-keys, remote execution etc. But it sounds to complicated for a side-project... Problem solved. Not quite the solution I hoped for but anyway... regards, jake On Jan 17, 2011, at 8:39 PM, Felipe Martins wrote: > 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. >=20 > Best Regards >=20 > --- > Felipe Martins > Security Analyst >=20 > Skype: martins.felipe > URL: http://www.felipemartins.info/ > E-mail: [email protected] >=20 >=20 > On 17/01/2011 15:43, Salvador Fandino wrote: >>=20 >>=20 >>=20 >> ----- Original Message ---- >>> From: "[email protected]"<[email protected]> >>> To: [email protected] >>> Sent: Sat, January 15, 2011 9:19:15 PM >>> Subject: simulate connection with netcat >>>=20 >>> Hello, >>>=20 >>> 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. >>>=20 >>> % 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 ... >>>=20 >>> 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. >>=20 >> You can find pointers to the related RFCs here: >> http://en.wikipedia.org/wiki/Secure_Shell >>=20 >> - Salva >=20