LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2014, 03:12 PM   #1
linux_x86
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Rep: Reputation: Disabled
Putty logon issue after ssh configuration


Hi,

I am currently doing SAP distributed installation i.e. CI (hosta) and DB (hostb). Now for running jobs from CI to DB server we have to complete ssh configuration without password authentication.

For this I performed below steps:

1. generated ssh public and private key on CI (hosta) using ssh-keygen -t rsa at /home/sidadm directory.

2. Since sidadm user exists on both server but it's home directory is encrypted so copied the public key from hosta to DB (hostb) on /etc/ssh/auth_key/authorized_keys.

3. Changed the ownership to sidadm with 600 permission on authorized_keys.

4. Made changes in /etc/ssh/sshd_config file and allowed RSAAuthentication, PublickeyAuthentication.

5. Changed AuthorizedKeysFile path to /etc/ssh/auth_key/authorized_keys.

6. Changed PasswordAuthentication to No.

All these steps allowed ssh from hosta to hostb without using password and jobs were running from App to DB. After sometime when I tried to connect to DB (hostb) using putty from my desktop it started giving error for all user logon(root, sidadm, etc.) as below:

"Disconnected: No supported authentication methods available (server sentublickey, gssapi-keyex,gssapi-with-mic)".

I had to forcibly remove ssh to allow users logon to DB (hostb).

Can anyone please help what I have missed which created this issue as ssh is required in our scenario.


Thanks,
Newbie
 
Old 07-29-2014, 05:27 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Once you disable Password Authentication, all logins need to use Key-based auth. You go through pretty much the same steps to set this up for each PuTTY client. The Pageant and PuTTYgen tools are on the PuTTY website.
 
1 members found this post helpful.
Old 07-29-2014, 06:35 PM   #3
linux_x86
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Putty logon issue after ssh configuration

Hi Smallpond,

Thanks for your reply.

As I am newbie in linux programming and ssh, so please bear with me if I ask basic question.

So as per your reply I have to perform same steps on my desktop for ssh i.e. create .ssh directory and I have to add my desktop in known host and copy public key file to authorized_keys on .ssh directory at desktop?

OR

I just copy publc key id_pub.rsa file from hosta and using puttygen-->Conversion-->Import key.


Thanks,
Newbie
 
  


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
Help with Ubuntu server remote ssh and local network ssh issues using putty. scottpops Linux - Server 8 05-17-2012 05:07 PM
[SOLVED] putty ssh works but ssh from terminal does not felixtheratruns Linux - Server 6 04-29-2010 12:01 PM
Windows Logon Configuration philipo Linux - Server 9 06-20-2007 09:36 AM
[putty&ssh] Who is really good & expert in ssh https tunnelling and firewalling ? Xeratul Linux - General 12 12-03-2006 03:22 AM
sshd + putty .. pausing on logon dunkyb Linux - General 4 12-31-2002 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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