The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
password verification verify password of a user for only first 8 characters amitpansuria UNIX for Advanced & Expert Users 12 10-23-2008 10:03 AM
ftp and user/password joeyg Shell Programming and Scripting 7 02-07-2008 05:32 PM
RID - password - user salvor_hardin UNIX for Advanced & Expert Users 1 12-09-2007 11:13 PM
connect whit Telnet without password raffyTxT SUN Solaris 2 10-18-2004 11:43 AM
user Id vs Password Cerberus UNIX for Dummies Questions & Answers 2 09-26-2001 04:03 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2009
PSDba PSDba is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 4
Question No password ssh connect to different user

I am trying to create a batch script to securely copy (scp or sftp) files from one machine to another. Unfortunately the files are owned by a different user than the one on my local machine.
I have already done a keygen and moved the public key to the authorized_users file of the user on the remote machine, but I can't get a connection without a password prompt. I had the SAs add the RSAAuthentication yes and Pubkey Authentication yes added to the /etc/ssh/ssh_config file too!

Any ideas?

Thanks,
Kevin
  #2 (permalink)  
Old 03-11-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,909
Check your file permissions to make sure sshd really can access the things it needs to. When I was getting this working I ended up running sshd manually with full debug output to tell exactly what it was doing when I was trying to log in...
  #3 (permalink)  
Old 03-12-2009
PSDba PSDba is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 4
Question Followup on permissions and settings.

Thanks Corona688. I have verified that the permissions are set the same on the remote machine meaning I have machine a (local) and machine b remote. I have user 1 on a and b and user 2 on machine b. I am able to ssh from a to b as user 1 without a password prompt. When I try to ssh from a to b as user 1 to user 2 I am prompted. I have entered the pub key of user 1 from a to the authorized_keys file of user 2 on b. The permissions on the directories and files are the same for each user 1 and 2 on b.

I did try an ssh with the -v option and the first thing it checks is the /etc/ssh/ssh_config file on machine a. The entries for RSAAuth and PubkeyAuth are not in that file, but are in the file on machine b. In other words do the permissions have to be reciprocal?

Anyway I appreciate your help! BTW Corona688 I am originally from Regina!! Small world, eh.
Sponsored Links
Closed Thread

Bookmarks

Tags
open ssh, ssh automatic login

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0