Solved

OpenSSH Passwordless Authentication between 2 systems with different UID's

Posted on 2006-10-30
1
1,192 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

717 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