![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
|
||||
|
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...
|
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Tags |
| open ssh, ssh automatic login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|