Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: Disabled
Putty logon issue after ssh configuration


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.

Old 07-29-2014, 05:27 PM   #2
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
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?


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



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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 AM.

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