From owner-freebsd-questions@FreeBSD.ORG Sat Jun 7 02:54:00 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53B5D37B401 for ; Sat, 7 Jun 2003 02:54:00 -0700 (PDT) Received: from herald.cc.purdue.edu (herald.cc.purdue.edu [128.210.11.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9634C43FAF for ; Sat, 7 Jun 2003 02:53:59 -0700 (PDT) (envelope-from foob@purdue.edu) Received: from herald.cc.purdue.edu (localhost [127.0.0.1]) h579rwnc026324 for ; Sat, 7 Jun 2003 04:53:59 -0500 (EST) Received: from localhost (foob@localhost)h579rwdZ026314 for ; Sat, 7 Jun 2003 04:53:58 -0500 (EST) X-Authentication-Warning: herald.cc.purdue.edu: foob owned process doing -bs Date: Sat, 7 Jun 2003 04:53:58 -0500 (EST) From: Bingrui Foo X-X-Sender: foob@herald.cc.purdue.edu To: questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Question about insecure server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2003 09:54:00 -0000 Hi all, I coded a simple chat server that allows people to remotely connect to port 9999 and chat with other people who connect. It uses basic C socket code to do it. People use telnet to connect, and have to input a password at the start when creating an account. I'm wondering is there a way to use ssh instead of telnet to connect to my chat server to make the connection secure? Do I have to modify the C socket code to somehow allow people to ssh into it? Or is there another way. I have no idea how to make it secure. If anybody could help, it would be greatly appreciated. Thanks, Foo