Link to home
Start Free TrialLog in
Avatar of cgray1223
cgray1223

asked on

How do I SFTP from a SSH session

Hello,

I'm connect to a host via ssh then I sftp to the same host and try and execute a PUT command trying to copy a file from my local file system to the host I ssh'd and sft'd to.  I get a file not found.  I dragged the file from my local file system so I know the path is correct.  How would I get a file from my local file system up to that host?
Avatar of cgray1223
cgray1223

ASKER

I'm on a mac if that matters...
ASKER CERTIFIED SOLUTION
Avatar of valheru_m
valheru_m
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Valheru m....thanks for the reply.  Do I run the scp command after I ssh?  I can't just do a scp when I'm not ssh'd to this machine for some reason.  
In your scenario you'd run scp from your local box, not inside an ssh session. Scp uses the same protocol as an ssh session, but instead of getting you a remote shell, the purpose
Is to copy files. Scp has been a native command in the terminal of all macs since I've been using them, which is since the 10.4 days.
http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks

Scroll down a bit til you get to the section on scp.
Avatar of omarfarid
ssh / sftp / scp are separate commands, did you try sftp ?
You can use cyberduck, or filezilla for mac.

My opinion Filezilla is the best.

CYBERDUCK:
http://www.apple.com/downloads/macosx/internet_utilities/cyberduck.html

FILEZILLA:
http://filezilla-project.org/download.php