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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@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.
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.
Scroll down a bit til you get to the section on scp.
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
My opinion Filezilla is the best.
CYBERDUCK:
http://www.apple.com/downloads/macosx/internet_utilities/cyberduck.html
FILEZILLA:
http://filezilla-project.org/download.php
ASKER