# Ssh sftp

**URL:** <https://www.ruby-forum.com/t/ssh-sftp/163456>\
**Category:** Ruby\
**Created:** [March 20, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/ssh-sftp/163456 "2009-03-20T15:18:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gjohnson71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a6a055/32.png) [@gjohnson71](https://www.ruby-forum.com/u/gjohnson71)\
**Post date:** [March 20, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/ssh-sftp/163456/1 "2009-03-20T15:18:27Z")

</div>

I am trying to download a remote file and preserve the file  
attributes… mtime,atime etc. Does anyone know how to do this? I am  
using the sftp.download!() method.

Thanks
