Ask Leo! by Leo A. Notenboom

How can I automate an SFTP transfer between two servers?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » General Computing

Comments

Read the article that everyone's commenting on.
RSS feed Subscribe to the RSS Feed for comments on this article.

Comment Page:  1  |  2  |  3  |  4  |  5 

Can this be applied to Windows 2003 to Solaris?
That is automated connection from Windows 2003 to Solaris?

Thanks

Posted by: Francis at February 24, 2008 12:58 PM

Hi Leo, I tried to follow the steps you posted here but I still cannot make it work. I am trying to use SFTP to send files from HP-UX to Windows Server 2000 with a domain account setup on the Window Server. No matter what I did, I always get promoted with password. Is the public key authentication not going to work for me since this is an AD account? What's the best way I can troubleshoot this issue? Thanks.

Posted by: Yvonne at March 12, 2008 3:46 PM

This article helps me greate.
I have one problem.
I can sftp without password from my account to abc@srvr1, but it asks fro password while sftp from my account to xyz@srvr3 even though I have copied the same public file in .ssh directory on both these severs.These both servers have same sshd_conf files.

Posted by: Vasant at April 3, 2008 5:20 AM

Very nice document. First I want to thanks U.
1. Is there any way to write script which copy files from remote server.

Posted by: Gurdeep Singh at July 7, 2008 5:14 AM

Hi,

I'm currently using the -b Batch mode reads a series of commands from an input batchfile
eg: -b batchfile user@host

Right now I have to add in the switch -C for the compresion. How I can do that with the using the above code as well with the batch file contain script like - Put command to upload the file from local to remote system.

Posted by: sftp compression at September 24, 2008 4:01 AM

Hi Leo, I wanted to know abouty sftp, and stumbled at your site, you are a great teacher.
Accept my humble respects.
Regards,
Venkat

Posted by: Venkat at November 6, 2008 10:00 PM

Hey Leo,

When I pasted the address you used before into my terminal (sftp user2@server2.com) to modify it, the CR somehow got into my copy buffer, so when I pasted it I apparently ftped into that actual address. It then locked up my system for awhile and I was unable to exit.

Do you happen to have any idea what server2.com actually is, and whether having ftped into it could have somehow compromised my system?

Thanks, Bill

Posted by: Bill at November 7, 2008 6:43 PM

I didn't see a response to Vasant's post of 4/3/08, so thought this might be useful. Each "from" account must create a key-pair and append the public key to the .ssh/authorized_keys on the "to" account side. You can't use one public key generated by one account to cover two source "from" accounts. But one "to" account can have multiple public keys in its .ssh/authorized_keys file to allow multiple "from" accounts to access that one "to" account.

Posted by: Dickster at February 7, 2009 9:56 PM

Hi Leo
I have a problem here. I have planted the keys in the remote server but when I use the scp command in a script, it does not work.
The login to the remote server does not create a problem but the scp itself does, in a sense that the file is not getting copied to the remote server. Do I have a hope or will have to look for alternatives.

Thanks in advance
Saurabh

Posted by: Saurabh at February 21, 2009 4:16 AM

Hi Leo,
Great article. I thought I would not be able to use this, as in the secure government environment I work in using Red Hat Enterprise Linux 5.1, the sshd_config file has both RSAAuthentication and PubkeyAuthentication commented out with #'s.

However, as I really needed this functionality from User A on Host A to User oracle on Host DB, I gave it a try and it's working like a charm. Not sure "why" but I'm glad it's working.

Many thanks for a great, useful, well-written article.

Posted by: Terry Porter at April 3, 2009 11:26 AM
Comment Page:  1  |  2  |  3  |  4  |  5 
Read the article that everyone's commenting on.
RSS feed Subscribe to the RSS Feed for comments on this article.
Post a Comment

Question? Ask Leo!