LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to establish "ssh" trusted hosts between PCs with non-root users? (http://www.linuxquestions.org/questions/linux-general-1/how-to-establish-ssh-trusted-hosts-between-pcs-with-non-root-users-902291/)

rainman1985_2010 09-10-2011 08:56 AM

How to establish "ssh" trusted hosts between PCs with non-root users?
 
When using root, I can establish trusted hosts with localhost.
But when i do the same thing using non-root users, it can't be done.
Why?

sundialsvcs 09-10-2011 09:07 AM

Please describe, in detail, exactly what you are trying to do, and exactly, step by step, what you have so-far done or attempted to do.

When you say, "establish ssh trusted hosts," please cite a web-page that refers specifically to what you are talking about when you use that phrase.

When you try it as a non-root user and "encounter a roadblock," please detail exactly what message you get, and why you come to the conclusion that it is an insurmountable obstacle.

As you can see from my italics, "the devil is in the details" for providing the most-useful answer to your question.

rainman1985_2010 09-10-2011 10:29 PM

Quote:

Originally Posted by sundialsvcs (Post 4468157)
Please describe, in detail, exactly what you are trying to do, and exactly, step by step, what you have so-far done or attempted to do.

When you say, "establish ssh trusted hosts," please cite a web-page that refers specifically to what you are talking about when you use that phrase.

When you try it as a non-root user and "encounter a roadblock," please detail exactly what message you get, and why you come to the conclusion that it is an insurmountable obstacle.

As you can see from my italics, "the devil is in the details" for providing the most-useful answer to your question.


when i run following sequence of instructions as root, i can establish trusted hosts with "localhost":

ssh-keygen -t rsa
cd $HOME/.ssh
cat id_rsa.pub >> authorized_keys

But when i run these instructions as a non-root users, i can't get the trusted hosts authentication. Why?

jschiwal 09-10-2011 11:11 PM

The public key for the user on the client needs to be added to the user's ~/.ssh/authorized_keys file on the server. You added the client's public key to the client's authorized_keys file instead.

The server's /etc/ssh/sshd_config file also needs to be configured so that pubkey authentication is used. It's possible the server is configured so that only root uses pubkey authentication.


All times are GMT -5. The time now is 04:19 AM.