Re: Transferring files over SSH in the console



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

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


For copying to a remote machine. But once I have a shell on that
machine open in my terminal, I'm not able to send commands to my local
machine in that terminal.


So there, no shell. I need a shell.


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


No, I already have "put" with sftp. But I want "put" and "which". Am I
really the first person in forty years of Unix history who needs to
both run commands and to transfer files to a remote machine?


scp is for putting files, not for getting files.


That's just *not* true. It doesn't care whether the source or destination
are remote or local.


You're right! Thanks. It's logical, but I never used it that way
(never had a need and never saw a a mention of it).

--
Dotan Cohen

http://bido.com
http://what-is-what.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/880dece01003211642i33b7812cu3dbcbfd46adf31e3@xxxxxxxxxxxxxx



Relevant Pages

  • Re: Passing password in ssh
    ... I can picture a cron job that does a backup to a remote machine, or a backup client that uses an ssh link to communicate to a backup server on a remote machine using "unlocked" keys. ... You may want to look into the -r option of bash, ... You can also look into sudo to give limited access to commands that need to be run as root, if what you are doing is going to require it. ... It is designed to be used as the users shell on the remote machine when you want to limit what they can do over a ssh connection. ...
    (Fedora)
  • Re: [opensuse] Connecting to Linux from Windows
    ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ... It uses the SSH, is very fast, is very secure, does not require X to be running on the remote machine, and works with Windows or Linux. ... It also does not require any X server on the Windows machine. ...
    (SuSE)
  • redirecting socket stream to file
    ... I connect to a remote machine using telnet, and run some commands, ... I use a VPN tunnel, so I have invoke a VPN client and to use expect ... The remote machine requires authentication, so I have to use expect ... I can easily automate the commands I use to generate the output, ...
    (comp.lang.perl.misc)
  • Re: exit status of remote commands
    ... I want to execute some commands on a remote machine through ssh and ...
    (comp.lang.perl.misc)
  • Re: netsh and DHCP server
    ... Unfortunately psexec sends the password as clear text, ... >> remote machine, I want to be able to make changes to DHCP. ... >> Unable to determine the DHCP Server version for the Server ... >> I need to execute commands using a script though, ...
    (microsoft.public.windows.server.scripting)