Re: scp in reverse?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: azlobo73
Date:  
To: Main PLUG discussion list
Subject: Re: scp in reverse?
<beats dead horse some more>

On a related note: in ssh, there is a -l switch to specify user, but
not in scp (instead that switch sets a limit on bandwidth in Kb/s).

On another related note: You can greatly simplify connection
strings/commands, either with bash or csh aliases, or with Host
sections in your ~/.ssh/config (see "man ssh_config", and "man
sshd_config" if you're the admin and can't get your local config file
to 'take' - e.g., isn't allowed by sshd_config, etc).

</beats dead horse some more>

Ben

On Mon, Apr 16, 2012 at 4:55 PM, azlobo73 <> wrote:
> Sure you can, so long as your local username IS the same as your
> remote username, in which case its just ssh some.host.or.ip . This
> won't probably work from a windoez system though (but maybe via cygwin
> etc).
>
> But IS good practice to include one, and  NOT good practice to have
> the same account name all over the place =), so this factoid may be a
> moot one.
>
> Ben
>
>
> On Mon, Apr 2, 2012 at 8:51 AM, Michael Havens <> wrote:
>> thanks.
>>
>>
>> On Mon, Apr 2, 2012 at 7:32 AM,
>> <> wrote:
>>>
>>> You can't get anywhere without a username:
>>> ssh <username>@<IP address>
>>> ET
>>>
>>>
>>> Michael Havens writes:
>>>>
>>>> well... yeah. I knew that. I was really asking how one did that. I mean
>>>> like do you drop the user name and it would be '<source_ip>:thatfile this
>>>> file' or 'thisfile <destination_ip>:that file'.
>>>> On Mon, Apr 2, 2012 at 6:25 AM, <
>>>> > wrote:
>>>>>
>>>>> Michael, "names" on a network are fake.
>>>>> There are only IP address in a network .
>>>>> You "translate a name" into its corresponding IP address via a "name
>>>>> resolution service"
>>>>> A "name resolution service" can be as simple as an /etc/hosts file or as
>>>>> complex as a full blown self-replicating/redundant name server (like
>>>>> bind).
>>>>> At the end, EVERYTHING goes via an IP address, so your question might
>>>>> actually work in reverse:
>>>>>>
>>>>>> I was wondering.... could you do this via NAMEs?
>>>>>
>>>>> Yes, assuming that the name can be translated via some "name resolution
>>>>> service"
>>>>> ET
>>>>>
>>>>>
>>>>>
>>>>> Michael Havens writes:
>>>>>>
>>>>>> I was wondering.... could you do this via ipaddress?
>>>>>> On Thu, Mar 15, 2012 at 12:01 PM, <
>>>>>> > wrote:
>>>>>>>
>>>>>>> Yes, scp (like cp) will copy back or forth, the 2 commands below are
>>>>>>> legal:
>>>>>>> scp myuser@remotebox:/that/file /this/path
>>>>>>> scp /this/path myuser@remotebox:/that/file
>>>>>>> 1st one will 'retrieve' /that/file from 'remotebox' into /this/path
>>>>>>> 2nd one will copy /this/path to /that/file in 'remotebox'.
>>>>>>> ET
>>>>>>> writes:
>>>>>>>>
>>>>>>>>
>>>>>>>> This is interesting.  Does this really mean that
>>>>>>>> scp in reverse is possible by using a similar syntax
>>>>>>>> with the dot at the end to extract a file from a remote
>>>>>>>> computer to my local computer?
>>>>>>>> -----------------
>>>>>>>> Mike Ballon wrote (in part) ... scp in reverse:
>>>>>>>> scp 192.168.0.4:Pictures/2009-****Move.from.Florida .
>>>>>>>> I'm guessing the path of the pictures and take note of the dot at the
>>>>>>>> end
>>>>>>>> ------------------------------****---------------------
>>>>>>>> PLUG-discuss mailing list -
>>>>>>>> .**phoe**nix.az.us<http://phoenix.az.us>
>>>>>>>>
>>>>>>>> <PLUG-discuss@lists.**plug.phoenix.az.us<>
>>>>>>>>
>>>>>>>> >
>>>>>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>>>>>>
>>>>>>>> http://lists.PLUG.phoenix.az.****us/mailman/listinfo/plug-****discuss<
>>>>>>>>
>>>>>>>> http://lists.PLUG.**phoenix.az.us/mailman/**listinfo/plug-discuss<http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss>>
>>>>>>>>
>>>>>>> ------------------------------****---------------------
>>>>>>> PLUG-discuss mailing list -
>>>>>>> .**phoe**nix.az.us<http://phoenix.az.us>
>>>>>>>
>>>>>>> <PLUG-discuss@lists.**plug.phoenix.az.us<>
>>>>>>>
>>>>>>> >
>>>>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>>>>> http://lists.PLUG.phoenix.az.****us/mailman/listinfo/plug-****discuss<
>>>>>>>
>>>>>>> http://lists.PLUG.**phoenix.az.us/mailman/**listinfo/plug-discuss<http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> :-)~MIKE~(-:
>>>>>
>>>>> ------------------------------**---------------------
>>>>> PLUG-discuss mailing list -
>>>>> .**phoenix.az.us<>
>>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>>>
>>>>> http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discuss<http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss>
>>>>
>>>>
>>>>
>>>> --
>>>> :-)~MIKE~(-:
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list -
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>>
>>
>>
>> --
>> :-)~MIKE~(-:
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss




--
---
Ben

python -c "exec(\"import math\\nprint ''.join(map(lambda x: chr(x), (
(ord('a')-(3*5)), int(math.sqrt(math.pi*76)*5+2),
int(math.ceil(math.e)*28), int(math.floor(math.e)*35),
long(abs(4%3*35+3)*2))))\")"
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss