From owner-freebsd-questions Wed May 29 20:27:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from boreas.primus.ca (mail.tor.primus.ca [216.254.136.21]) by hub.freebsd.org (Postfix) with ESMTP id 25DD437B403 for ; Wed, 29 May 2002 20:27:21 -0700 (PDT) Received: from dialin-142-227.hamilton.primus.ca ([209.90.142.227]) by boreas.primus.ca with esmtp (Exim 3.33 #16) id 17DGQe-000571-0A for freebsd-questions@FreeBSD.ORG; Wed, 29 May 2002 23:16:44 -0400 Date: Wed, 29 May 2002 23:27:04 -0400 (EDT) From: Jason Hunt X-X-Sender: leth@lethargic.dyndns.org To: freebsd-questions@FreeBSD.ORG Subject: Re: howto force ssh version 2 In-Reply-To: <20020529185601.A12863@sunny.localdomain> Message-ID: <20020529232122.F95828-100000@lethargic.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 29 May 2002, VB wrote: > Hi for some reason my fbsd version of ssh is trying to connect as version 1 > ssh. for that reason, I am being turned away. to be accepted, i must do > > ssh -2 -l user xxx@xxx.com > > How can I require version 2 without the flag? > For both the daemon and the client you can use the "Protocol" option in their config files to specify preference and support for versions 1 and 2. These files are /etc/ssh/sshd_config and /etc/ssh/ssh_config, respectively. Also, from the sshd manpage: Protocol Specifies the protocol versions sshd should support. The possi- ble values are ``1'' and ``2''. Multiple versions must be comma- separated. The default is ``2,1''. And the ssh manpage: Protocol Specifies the protocol versions ssh should support in order of preference. The possible values are ``1'' and ``2''. Multiple versions must be comma-separated. The default is ``2,1''. This means that ssh tries version 2 and falls back to version 1 if version 2 is not available. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message