Solved

OpenSSH Passwordless Authentication between 2 systems with different UID's

Posted on 2006-10-30
1
1,177 Views
Last Modified: 2013-12-04
How to communicate without a passwd between 2 Unix systems where
the communicating sessions have different uid/s? (NOTE: both systems
are on OpenSSH)

e.g.


SystemA UserA SSH to SystemB UserB


Here is what I tried but failed.


As UserA in System A:



> ssh-keygen -t dsa
> cd ~/.ssh
> cat id_dsa.pub > authorized_keys2
> scp ./id_dsa.pub UserB@SystemB:.ssh/.  (when prompt for the passwd, I typed UserB's passwd)


As UserB in System B:


> cd .ssh
> cat id_dsa.pub > authorized_keys2


I tried the setup for the same user ID on both systems, it would work in the above example (i.e. SystemA UserA SSH to SystemB UserA)

Could someone tell me what am I missing?  Thank you very much!


0
Comment
Question by:cklh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 48

Accepted Solution

by:
Tintin earned 100 total points
ID: 17845665
The correct steps are:

On system A as User A

ssh-keygen -t dsa
ssh userB@systemB "mkdir .ssh;chmod 700 .ssh"
cd ~/.ssh
scp id_dsa.pub userB@systemB:.ssh/authorized_keys

Then you should be able to do:

ssh userB@systemB
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question