Advertisement

11.15.2006 at 01:44PM PST, ID: 22062177
[x]
Attachment Details

SFTP connection without password prompt?

Asked by ewessel in Linux Network Security

Tags: sftp, password, without, prompt

I am trying to connect our server to another via SFTP to send files securely, and I would like to automate this connection.  Whenever I connect to the remote server with the username assigned to us by the remote administrators, it always asks for a password to log in, which the user must enter manually.  Is there a way to set up the connection so we do not have to put in a password all the time?  I have read some of the documentation on ssh and sftp, and tried generating a public key based on a private key we already use for one trading partner, then placing this public key in a .ssh directory on the remote server as a 'authorized_keys' file, but it still asks for the password, even if I use a -o 'IdentityFile _filename_' in the sftp command.  any help would be appreciated..Start Free Trial
[+][-]11.15.2006 at 01:59PM PST, ID: 17951012

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.16.2006 at 04:04AM PST, ID: 17955034

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.16.2006 at 06:45AM PST, ID: 17956086

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.16.2006 at 11:04AM PST, ID: 17958700

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Network Security
Tags: sftp, password, without, prompt
Sign Up Now!
Solution Provided By: slyong
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32