LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-22-2015, 11:07 AM   #1
dyoung02
LQ Newbie
 
Registered: May 2015
Posts: 6

Rep: Reputation: Disabled
Question SSH Connection being prompted for a password


I have a Solaris 10 client connecting to a RHEL 6.x server. I have the below configured in my sshd_config, but my client continues to get prompted for a password:

Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
PermitRootLogin no
StrictModes no
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile /home/%u/.ssh/authorized_keys
/etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
HostbasedAuthentication no
IgnoreRhosts yes
PermitEmptyPasswords no
PasswordAuthentication yes
ChallengeResponseAuthentication no
GSSAPIAuthentication no
GSSAPICleanupCredentials no
UsePAM yes
Ciphers aes128-ctr,aes192-ctr,aes256-ctr
MACs hmac-sha1

Despite having PubkeyAuthentication yes I'm seeing:
Authentications that can continue: password

Instead of:
Authentications that can continue: publickey,password

The perms on the user home directory and .ssh are 700, and the authorized_keys is 600. All are also owned by the user.

I was also able to use the client's private key on the server to connect from my server into itself and was able to authenticate without being prompted for a password.

Any suggestions will be greatly appreciated.
 
Old 05-23-2015, 03:19 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
SSH from Solaris to Linux.....

Can you check the ssh_config on the Solaris machine?
Are you sure that you have properly moved and placed the pub key from the Solaris box onto the RH box?
Have you tried ssh with -vvv on the client side, and check the connection trace from ssh on the RH side?
 
Old 05-24-2015, 05:13 PM   #3
dyoung02
LQ Newbie
 
Registered: May 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Angry

I have. So far I've done the following:

1. On Linux1(server side), used the Solaris1(Client side) private key and successfully connected back to the Linux1 server.
***Linux1 to Linux1

2. On Linux1(server side), used the Solaris(Client side) private key and successfully connected to another Linux2 server.
***Linux1 to Linux2

3. From Solaris1(client) connected to another Solaris2 machine.
***Solaris1 to Solaris2

4. From Solaris1(client) connected to another Linux3 machine.
***Solaris1 to Linux3

I just can't get Solaris1 to connect to Linux1.
 
Old 05-28-2015, 03:13 PM   #4
dyoung02
LQ Newbie
 
Registered: May 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Cool Resolved!!!!!!!!!

It turns out that the firewall on the Solaris client side was configured to do protocol filtering,
but once changed to packet filtering everything worked!
 
Old 05-28-2015, 09:50 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Thank you

So, protocol filtering allowed the connection, but disabled key authentication?
Not the behavior I would have expected. Thank you for sharing that! I will add that to my list of things to watch out for.
 
Old 05-28-2015, 10:07 PM   #6
dyoung02
LQ Newbie
 
Registered: May 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Imagine our firewall guy's reaction! He was 100% sure the firewall had no impact on this. I had to send him an error message that referenced the firewall after I disabled PasswordAuthentication.

To be certain we had him change the setting back to protocol filtering and it prompted for a password again.
 
  


Reply



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
I cannot do a shutdown without being prompted for root's password. hscast Linux - Desktop 6 01-23-2013 04:27 AM
ssh connection forces password change, then closes connection loadedmind Linux - Newbie 2 02-16-2011 01:24 PM
Squid - client not prompted for user/password z-man5 Linux - Software 1 11-13-2007 09:57 AM
Not getting prompted for Root password Doug Vitale Fedora 8 02-20-2007 11:59 AM
Prompted for Password When Configuring Printer Kamex SUSE / openSUSE 3 08-14-2005 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:48 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