[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

02/06/2009 at 10:54AM PST, ID: 24120376 | Points: 500
[x]
Attachment Details

SFTP issue

Asked by suchu_suresh in Unix Networking

Hi,
 I have an scenario to sftp the files using Admin Id (user--> mhvsftp). But there are 5 other users (call it as 'businessuser1, businessuser2, etc.'). User "businessuser1" can able to login through his id and will execute the sftp script using mhvsftp. (FYI, using 'mhvsftp' user the key pair is generated and shared with external vendor External.ftp.com).
I have tried to acheive the same by the following method.
Step 1:  Created a ".externalvendor_sftp" file using user mhvsftp.
Step2 : Edited teh file ".externalvendor_sftp" to have the following
FTPSTRING=External.ftp.com
USERNAME=mhvsftp
PASSWORD='happy$1

Step3: Inside my sftp script i have entered the following to execute through mhvsftp user (even thoug i executes through businessuser1)
          ENVFILE=/mhvsftp/home/.externalvendor_sftp
          . $ENVFILE
          sftp $FTPSTRING user $USERNAME using $PASSWORD

Please let me know the sftp option to acheive  this.
Related Solutions: SFTP password issue
[+][-]02/06/09 11:00 AM, ID: 23572917

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/09 11:17 AM, ID: 23573134

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/09 06:10 PM, ID: 23576133

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/06/09 10:51 PM, ID: 23576950

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/07/09 02:35 PM, ID: 23580585

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_Related_20080208