LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-23-2007, 03:11 PM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
ssh protocol 1


Hi All,

I just installed Centos 4.4 and have a question reagrding ssh. I see in /etc/ssh/sshd_config that protocol 2 and 1 are listed. Am I correct in assuming that the default is protocol 2 and the server will stepdown to protocol 1 if a client is using protocol 1? I understand I can uncomment the line and just use protocol 2. However, I thought protocol 1 was vulnerable to man-in-the-middle attacks so why even bother putting it in as an option?

Thanks for the help.
 
Old 01-23-2007, 04:44 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
If both are listed, the preference will be in the order listed. If you want to force protocol 2, remove the "1" from the line. If the client insists on protocol 1, then no connection will be established. Protocol two is more secure, but I forget the details.
 
Old 01-23-2007, 04:45 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,150

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
However, I thought protocol 1 was vulnerable to man-in-the-middle attacks so why even bother putting it in as an option?
This is historical. Most people (perhaps using ancient systems) would rather get an insecure connection than no connection at all: that way they can upgrade and secure their software (perhaps remotely). If you are unhappy about your ssh falling back to protocol 1 then you can disable this. It is, as you say, an option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync -e ssh error protocol incompatibility osio Linux - Networking 13 11-06-2019 04:35 PM
Out-of-the-box NAS that supports the SSH protocol? overge Linux - Networking 1 08-15-2006 11:41 AM
ssh - protocol mismatch scvarious Linux - Security 1 09-27-2005 01:48 AM
SSH - socket: Address family not supported by protocol SkyLinePL Linux - Networking 4 09-24-2004 12:03 AM
making ssh 1 default protocol maaand Linux - Security 1 04-26-2002 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration