OpenSolaris

Printable Version Enter a New Search
Bug ID 6474758
Synopsis make sftp(1) able to upload files from command line
State 3-Accepted (Yes, that is a problem)
Category:Subcategory ssh:commands
Keywords
Responsible Engineer Jan Pechanec
Reported Against
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs
Submit Date 25-September-2006
Last Update Date 8-March-2007
Description
sftp(1) can be easily used just from a command line to download files:

sftp [options] [user@]host[:file1 [file1 [file | dir2]]

$ sftp localhost:/etc/group .
Connecting to localhost...
Fetching /etc/group to ./group

however, it cannot upload a file the same way. scp(1)'s protocol is quite simple (cannot handle ACL's, for example) and probably hard to extend in a compatible way so sftp(1) should be made as easily used from a command line as scp is.

$ sftp group localhost:/tmp
Connecting to group...
ssh: group: node name or service name not known
Connection closed
Work Around
N/A
Comments
N/A