# Deprec and Net-sftp

**URL:** <https://www.ruby-forum.com/t/deprec-and-net-sftp/84479>\
**Category:** Deployment\
**Created:** [February 5, 2007, 5:23am UTC](https://www.ruby-forum.com/t/deprec-and-net-sftp/84479 "2007-02-05T05:23:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@pdg](https://www.ruby-forum.com/u/pdg)\
**Post date:** [February 5, 2007, 5:23am UTC](https://www.ruby-forum.com/t/deprec-and-net-sftp/84479/1 "2007-02-05T05:23:47Z")

</div>

Hi my name’s Paul,

I’m trying to deploy from a windows xp machine, to an ubuntu server I  
own. I have tried deprec, but am having issues with net sftp  
connecting. I can connect automatically on putty, but net-sftp is  
failing to “put”. I am starting to gather that this is a fairly common  
problem, but can’t find a solution. Any ideas?

Thanks,  
Paul.

---

<div class="post-metadata">

**Author:** ![pdg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@pdg](https://www.ruby-forum.com/u/pdg)\
**Post date:** [February 5, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/deprec-and-net-sftp/84479/2 "2007-02-05T16:48:42Z")

</div>

I have had good results using FileZilla (look on sourceforge) for  
secure transfers from/to windows and a linus host.

---

<div class="post-metadata">

**Author:** ![pdg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@pdg](https://www.ruby-forum.com/u/pdg)\
**Post date:** [March 31, 2007, 7:53am UTC](https://www.ruby-forum.com/t/deprec-and-net-sftp/84479/3 "2007-03-31T07:53:46Z")

</div>

pdg wrote:

> Hi my name’s Paul,
> 
> I’m trying to deploy from a windows xp machine, to an ubuntu server I  
> own. I have tried deprec, but am having issues with net sftp  
> connecting. I can connect automatically on putty, but net-sftp is  
> failing to “put”. I am starting to gather that this is a fairly common  
> problem, but can’t find a solution. Any ideas?
> 
> Thanks,  
> Paul.

I just worked this out!

There’s a bug in the su\_put code that checks for the /tmp directory on  
the _local_ machine instead of the _remote_ machine and then builds an  
invalid remote file name if it can’t find it. The easy fix is to put a  
directory called tmp in the root of the current drive on Windows.

This works on Unix clients because they all have /tmp, so the test  
passes
