From owner-freebsd-newbies@FreeBSD.ORG Thu Dec 16 22:42:51 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B47416A4CE for ; Thu, 16 Dec 2004 22:42:51 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 839CC43D45 for ; Thu, 16 Dec 2004 22:42:50 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc91.asp.att.net (sccimhc91) with ESMTP id <20041216224249i9100rff67e>; Thu, 16 Dec 2004 22:42:49 +0000 Message-ID: <41C20F67.1020908@nbritton.org> Date: Thu, 16 Dec 2004 16:42:47 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 0.9 (X11/20041203) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam References: <003701c4e3a7$2f37b4c0$0200a8c0@PANASONIULSWMR> <20041216194335.GA91562@alexis.mi.celestial.com> <004b01c4e3a8$ac6e57e0$0200a8c0@PANASONIULSWMR> <6e01203b04121611571f8fdc6f@mail.gmail.com> <005b01c4e3aa$505d8c30$0200a8c0@PANASONIULSWMR> In-Reply-To: <005b01c4e3aa$505d8c30$0200a8c0@PANASONIULSWMR> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd@celestial.com cc: freebsd-newbies@freebsd.org cc: Tyler Gee Subject: Re: Don't use telnet, use ssh!!! (Can't SU to Root on Telent) X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 22:42:51 -0000 You do not want to get in the habit of using telnet!!! ssh, to sum it up simply, is an encrypted version of telnet. The major flaw with telnet (and ftp) is that it sends everything (including you usernames and passwords) in plain text, It would be very very easy for me to root your box with a simple packet sniffer. I use PuTTY (ssh client) and Filezilla (sftp client) for all my work on windows computers. These programs are both free/open source, lightweight, and are very easy to setup and use for a beginner so give them a try: http://filezilla.sourceforge.net/ http://www.chiark.greenend.org.uk/~sgtatham/putty/ When your on a unix computer you use ssh and sftp respectively at the terminal, the basic way they work is like this: ssh username@hostname then enter your password when it asks for it. sftp username@hostname, after you login with sftp type in help for a list of commands, the important ones to remember are; get, put, lls / ls, lcd / cd, lmkdir / mkdir, lpwd / pwd, and quit. the l is for local, as in this effects the local host your on and not the remote host. examples: # ssh nbritton@192.168.0.10 # sftp nbritton@nbritton.org As far as setting up sshd on the server, the only thing you have to do on FreeBSD is add (as root) sshd_enable="YES" to /etc/rc.conf and reboot. And there's only a few thing you need to remember when using ssh and sftp: 1. ssh and sftp work on port 22 2. The SSH2 protocol is better then the SSH1 protocol, use it when possible. 3. You can only login as a normal user and to "su" to root your user has to be in the wheel group. To check if your in the wheel group type in: "id -p", if you don't see wheel under groups then your not in it. To add your user to the wheel or any other groups use this (as root): # pw usermod -n username -G wheel