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