LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-06-2014, 10:01 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
SSH client-to-server cipher error when logging into Red Hat Enterprise


Hello.

I'm trying to use PuTTY v5.8 from a Windows 7 Desktop to log into an Red Hat Linux Enterprise Server and I'm getting the following error:

Code:
Couldn't agree a client-to-server cipher (available: aes128-ctr, aes192-ctr, aes256-ctr)
I believe that all of the Red Hat Linux systems are setup correctly, with the following.

/etc/hosts.allow has the IP addres of the computer that I'm using at access the server

/etc/ssh/ssh_config has the following entry: ciphers aes128-ctr, aes192-ctr and aes256-ctr

/etc/sysconfig/iptables has the following entry: -A INPUT -s (my ip address) -p tcp -m tcp --dport 22 -j ACCEPT

I think I have the Linux servers ok, and I am able to SSH into other Linux servers too, so I've tried to match the PuTTY settings so they match the ones that I can't get to Vs the ones that I can get to.

I am not sure what I'm missing or what I'm not doing.

It has been recommended to upgrade the PuTTY client, however I also wanted to get others input.

thanks
 
Old 10-07-2014, 06:50 PM   #2
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
You need to add a "Ciphers" line to /etc/ssh/sshd_config (or modify the existing line) to include at least one cipher supported by PuTTY, and then either restart or SIGHUP the sshd process so that it re-reads its configuration.

Note that /etc/ssh/sshd_config is different from the /etc/ssh/ssh_config file, which is for ssh clients running on the host. The /etc/ssh/sshd_config file is for the ssh server running on the host (which is what your PuTTY ssh client is connecting to). The contents of /etc/ssh/ssh_config has no effect on connections to the server.

See also the "Ciphers" section of http://linux.die.net/man/5/sshd_config

Alternatively, if the latest version of PuTTY supports one of the ciphers the server is configured to use, then upgrading PuTTY would also work.

Last edited by ttk; 10-07-2014 at 06:51 PM.
 
Old 10-08-2014, 07:12 AM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Forgot to mention, when checking /etc/sshd/sshd_config, the following entry is found:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr


I am going to upgrade my PuTTY Client from v5.8 to v6.0 (its the version approved by out info sec deptartment) to see if that fixes the issue.

thanks
 
Old 10-22-2014, 08:55 PM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Have updated the PuTTY client from v5.8 to v6 and that fixed the issue.

Thanks.
 
  


Reply

Tags
iptables, putty, red hat linux, ssh



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
Intermittent SSH connection drop between Win 7 client and Red Hat 6 server thegoodoctor Linux - Server 0 10-09-2012 01:43 PM
Red Hat Enterprise Linux 6 Client Raid config with mdadm karo_heart Red Hat 2 11-14-2010 11:54 AM
2 boot error on Red Hat Enterprise Linux 5.3 desktop client vipul_patel Linux - General 1 12-18-2009 03:56 PM
NVIDIA drivers on Red Hat Enterprise 5 client tj38marlow Linux - Desktop 4 12-25-2008 07:20 AM
Upgrading Red Hat 9 to Red Hat Enterprise Server 3 AS louisb Linux - Software 7 02-23-2004 10:25 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:39 AM.

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