LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-10-2011, 08:56 AM   #1
rainman1985_2010
Member
 
Registered: Oct 2010
Posts: 47

Rep: Reputation: 0
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?
 
Old 09-10-2011, 09:07 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,599
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
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.
 
Old 09-10-2011, 10:29 PM   #3
rainman1985_2010
Member
 
Registered: Oct 2010
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs View Post
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.
 
Old 09-10-2011, 11:11 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 09-10-2011 at 11:13 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging in non-root users fails either with "no shell" or no directory Doc_X_Doc Linux - Newbie 16 03-09-2010 10:27 AM
LXer: How and When "Average Joe" and "Geek" Get New PCs (Comic) LXer Syndicated Linux News 2 05-25-2008 03:58 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration