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
Custom error page when tomcat authentication fails sebagra UNIX and Linux Applications 0 05-06-2008 05:10 PM
UNIX Backup Exec Agent Error George26 UNIX for Advanced & Expert Users 2 06-30-2006 04:04 PM
about CA agent buffoon Linux 1 05-14-2005 03:45 AM
arrow keys / special keys raguramtgr UNIX for Dummies Questions & Answers 3 02-20-2004 02:45 AM
Authentication token error?!?! solvman UNIX for Advanced & Expert Users 8 06-03-2002 11:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2009
sandeeppotdar sandeeppotdar is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 2
Question SSH with RSA keys - error contacting the authentication agent

Hi all,

Basic Requirement:
To SFTP large files (usually 10GB). We use webMethods 6.1.2 (installed on Unix) as the orchstrator and make underlying Unix system calls to do the processing.
That is, if we have to SFTP a large file - webMethods will invoke a Perl script on the underlying Unix system and the Perl script inturn makes two things:
1. Connect to the SFTP server (using the Unix system command "sftp user@hostname") and get the "sftp>" prompt
2. Transfer the file (using the command "put filename")

Additional Requirement:
We use the RSA based passwordless authentication method provided by SSH/SFTP. We manually create a RSA pub-pvt key pair using "ssh-keygen" command and store the public key in the remotehost's ".ssh/authorized_keys" file. While the pvt key is added to the "ssh-agent" on the localhost using the "ssh-add filename" command. More on this can be found at: SSH and ssh-agent and OpenSSH Manual Pages

Problem:
All the above had been working until the past few days. But there seems to have been some Unix env change because of which when webMethods calls the Perl script to do the sftp, it cannot contact the SSH Agent to get the pvt keys. There are several SSH Agents running in the system but the value of "SSH_AGENT_PID" is not available to the Perl script - because of which it cannot do a passwordless authentication with the remotehost. When we run the same script directly in Unix it succeeds but when webMethods calls this script it doesnt. When I run the "set" command through webMethods it doesnt have any Env Variables unlike when I run "set" command in Unix directly it gives me the variable list which has the value of "SSH_AGENT_PID" set.

Would appreciate greatly if we could get any inputs/help which could solve this issue. Possibly we may be doing something wrongly or missing something. But just to add - it all worked perfectly just a few days ago!

Rgds,
Sandeep
  #2 (permalink)  
Old 01-10-2009
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
Some Possibilities:

somebody ran ssh-keygen and made new keys in the local directory

there was a change - almost any sort of change -
on the other side
changed protections on the remote directories
ip address change on the remote server
on this side
changed directory protections

If you ask around people will say 'nothing was changed' but something had to have changed.
  #3 (permalink)  
Old 01-10-2009
sandeeppotdar sandeeppotdar is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 2
No change in remotehost

Thanks for your response.

But there is no change in the remotehost. And when I login directly from Unix using the same user it works well. But when the webMethods (runs as a process with parent id as '1' - if at all that helps) tries to run the same script it fails. webMethods cant even get any value for the SSH_AGENT_PID so it cant connect to the ssh-agent. Now is there something obvious I'm missing?
Closed Thread

Bookmarks

Tags
rsa keys, sftp, ssh, ssh-agent

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 11:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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