[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I SFTP from a SSH session

Posted on 2011-03-12
7
Medium Priority
?
505 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:cgray1223
7 Comments
 

Author Comment

by:cgray1223
ID: 35115036
I'm on a mac if that matters...
0
 
LVL 5

Accepted Solution

by:
valheru_m earned 2000 total points
ID: 35115068
scp /path/to/local/file username@remotesystem:/path/to/put/remote/file/
0
 

Author Comment

by:cgray1223
ID: 35115500
@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.  
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 5

Expert Comment

by:valheru_m
ID: 35115510
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.
0
 
LVL 5

Expert Comment

by:valheru_m
ID: 35115515
http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks

Scroll down a bit til you get to the section on scp.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 35115548
ssh / sftp / scp are separate commands, did you try sftp ?
0
 
LVL 23

Expert Comment

by:savone
ID: 35115683
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
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month17 days, 21 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question