Re: simulate connection with netcat
niklas|brueckenschlaeger <[email protected]> Mon, 17 Jan 2011 19:08:12 +0100
| Newsgroups | gmane.network.openssh.general |
|---|---|
| Organization | die | brueckenschlaeger |
| Message-ID | <1295287692.16746.7.camel@solid> |
--=-gZ4Yz3fcHQoVOmG3B8Om Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Why don't you want to use libssh? Maintaining a custom implementation of SSh adds lots of complexity to your plain GUI task. -- niklas On Mon, 2011-01-17 at 09:43 -0800, 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 si= mulate > > 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". >=20 > SSH uses a binary protocol. Getting authenticated is far more complex tha= n=20 > writting something at your keyboard by hand. >=20 > You can find pointers to the related RFCs here:=20 > http://en.wikipedia.org/wiki/Secure_Shell >=20 > - Salva --=-gZ4Yz3fcHQoVOmG3B8Om Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJNNIWEAAoJEIQdQGZOjo82cpMP/iWCdJS1JpaK6QZQtYJx4X4r VqFoOVqWe2Acp12eUVz3ZII6UPyuCCe8ZkA7qoq9F+uqPlslDkbKETOIvEMT0Gja ufXunLiyOU0SJFEG3aoGLWt9eJEaf+FQQ3Ux/tdabzsunJGz4tWUA8eMuNzCbQ1Q O6bkheaYbzAL0ROhjIId2bT8RcxjcQrCUSKDwKceV/pGcmBdE7RrWq/TKkRTfNEa +QTjuXQs54SBhjMnez/Vhlq1VbhZg5Lv25+5RscBa3eCcjO+C6/y3cK21r5qqBKQ 4wxCJapZ68hQfbGxGARDuAlPg6YappcuqTkgI+aTgpX+NaQ+z76lk4CXSDbGRorg nNApXsdHpDj58NLhVpyPm22e5I/hQEOLHruK/qIn3+8Z//ZuzsYXtnZNX6XS+Mw3 nP8aOpiw8mTKevpOqj+V8SHXSiyKAZtIe0MsKhsbfj6HfpP5GseCRX9I71XV2ca0 H+t2+1JvZSDPcxU8W0EKOJwtoglyJMLTL9j+JfRHjuraiIIexeVO36lMJbhBk/xz aUFIXhSWGrAIYb8tt3QqiAX2oKr/d9J2+jXdGMMx4yizLsnebYdS69TrArpjCqMT 443urX5aqk79gJ4oxho/Qdsu1tXjHbIAWCszuVYkwS/p2rPV5gM9xJ/uMu26T0ay 7OalCrLPe+HXzw6gccv1 =iRgw -----END PGP SIGNATURE----- --=-gZ4Yz3fcHQoVOmG3B8Om--