Solved

OpenSSH Passwordless Authentication between 2 systems with different UID's

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In today's information driven age, entrepreneurs have so many great tools and options at their disposal to help turn good ideas into a thriving business. With cloud-based online services, such as Amazon's Web Services (AWS) or Microsoft's Azure, bus…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now