How to establish "ssh" trusted hosts between PCs with non-root users?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Last edited by sundialsvcs; 09-10-2011 at 09:08 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.
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?
Last edited by rainman1985_2010; 09-10-2011 at 10:30 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.