# Sftp from an ssh connection?

**URL:** <https://www.ruby-forum.com/t/sftp-from-an-ssh-connection/182423>\
**Category:** Ruby\
**Created:** [January 27, 2010, 7:51pm UTC](https://www.ruby-forum.com/t/sftp-from-an-ssh-connection/182423 "2010-01-27T19:51:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plambert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9d8465/32.png) [@plambert](https://www.ruby-forum.com/u/plambert)\
**Post date:** [January 27, 2010, 7:51pm UTC](https://www.ruby-forum.com/t/sftp-from-an-ssh-connection/182423/1 "2010-01-27T19:51:30Z")

</div>

I’ve seen a few posts in this list about getting an SSH connection  
(with the net-ssh gem) and then using it to do sftp by calling .sftp  
on the session object. This is exactly what I would like to do  
(rather that start with sftp), but it looks like the “sftp” method on  
the session object is not documented. I’m looking here:  
[http://net-ssh.rubyforge.org/ssh/v2/api/classes/Net/SSH/Connection/Session.html](http://net-ssh.rubyforge.org/ssh/v2/api/classes/Net/SSH/Connection/Session.html)

Is it just an oversight in the documentation, or is it documented  
somewhere else?

Thanks,  
–Paul
