1753264 Members
5150 Online
108792 Solutions
New Discussion юеВ

ssh not allowing..!!!

 
SOLVED
Go to solution
Justin_132
Advisor

ssh not allowing..!!!

Hi Admins,

I got some users for whom i had generated dsa keys in their home directories. Im running SSH with protocol ver.2. Though I appended the authorised_keys of one user with other users key(dsa),still Im prompted for password. This is within a system and not between other systems. How can I login from one normal user to another without prompting password(of same group)..

Just-In
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: ssh not allowing..!!!

Shalom Justin,

The most common cause of this is permissions on the .ssh/ directory.

Attaching a word doc and linking a power point presentation that should help you debug the whole thing.

http://www.hpuxconsulting.com/5004.ppt
Download it, don't try and open it online with Firefox, something strange may happen.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Justin_132
Advisor

Re: ssh not allowing..!!!

Hi Steve,

Im able to do that between one server and the other and it works. But my requ. is to have between users of same group in the same server. Not with any other servers locally.
Just tell me, In this case why should I use dsa public key for authuntication, since im not going to connect any server outside.

Hope you got me..Just-In
Justin_132
Advisor

Re: ssh not allowing..!!!

Hi Admins...

Any Hopes For This...!!!!!!!

Just-In
Geoff Wild
Honored Contributor

Re: ssh not allowing..!!!

Yes, there is hope - you should be able to do this.

What version of ssh are you using?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jeff_Traigle
Honored Contributor

Re: ssh not allowing..!!!

You mentioned you created the authorized_keys. Assuming that's correct and all permissions were double checked as Steven mentioned... do you have PubkeyAuthentication set to yes in /opt/ssh/etc/sshd_config? If not, that would cause sshd to prompt for a password even with the authorized_keys set up properly.
--
Jeff Traigle
Sanjay_6
Honored Contributor

Re: ssh not allowing..!!!

Hi Justin,

say you are user1 and want to login as user2 on the same server or another server, you need to put your keys (user1 keys) into the authorized_keys of the other user (user2).

Hope this helps.

Regds
Justin_132
Advisor

Re: ssh not allowing..!!!

Hi Admins,

I did : (User1 and User2 are in same group)

- Generated dsa keys for User1 and User2
from their own logins,

- Check the permissions for the auth.._key files for User1 and User2,

- Appended auth.._key files of both users with their resp. dsa.pub key,

As I said before, I got absolutely no probs between other systems. Im not able to do within the system.

Hereby attached my sshd_config file.

Just-In
guna_1
Advisor
Solution

Re: ssh not allowing..!!!

Hi,

I can see from your sshd config file , the hostkey for DSA is hashed , you have to enable that one .

your are able to connect to other m/c because that your are acting as client , this config file will not be used .

sshd_config will be used by sshd daemon , which is listening for client requests.

You get more err info if you have started your server daemon is debugg mode by adding -ddd option while starting.


Regds,
Guna
Justin_132
Advisor

Re: ssh not allowing..!!!

Hi Guna,

# HostKey for protocol version 1
#HostKey /opt/ssh/etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /opt/ssh/etc/ssh_host_rsa_key
HostKey /opt/ssh/etc/ssh_host_dsa_key

I have changed my settings...but stil no grace from GOD...!!

Just-In