[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Transferring files over SSH in the console



On 2010-03-21 18:25, Dotan Cohen wrote:
No, scp is for sending files to a remote machine that the user has yet
to connect to:
Eh?  I think you're imposing unneeded self limits.


How so? With scp I can send file to the machine that I'm remotely connected to?


Of course.  It's a *copy* program.

$ man scp

SCP(1)                  BSD General Commands Manual

NAME
     scp — secure copy (remote file copy program)


sftp.


✈dcl:~$ sftp user@1.2.3.4
Connecting to 1.2.3.4...
user@1.2.3.4's password:
sftp> which ls
Invalid command.
sftp>

So there, no shell. I need a shell.


You wanted "put", I give you "put".


--
"History does not long entrust the care of freedom to the weak
or the timid."  Dwight Eisenhower


Reply to: