File sharing with the CLI

Ian Coetzee ubuntu at iancoetzee.za.net
Fri Feb 12 12:41:55 UTC 2010


On Fri, Feb 12, 2010 at 2:39 PM, Ian Coetzee <ubuntu at iancoetzee.za.net> wrote:
> On Fri, Feb 12, 2010 at 2:09 PM, Knapp <magick.crow at gmail.com> wrote:
>> Hello,  I have a computer that I think has networking set up, (linux).
>> I have a second small laptop that is CLI from the rescue CD remix. I
>> want to send a file from the laptop to the main computer. They are
>> both on the same router. How do I do this? What must I do to the
>> laptop to make this work? THanks!
>
replying to myself here

Note that this will only work if the remote machine has OpenSSH-server
installed and configured

Regards
Ian

> Hi sorry if my post seems a bit messed up, but I am typing this as I
> am programming (still in that M.O. )
>
> The best starting point would be to issue the command
>
> 'ip address show' on the laptop to see if you got an IP via DHCP.
>
> If not, the second step would be to check which number the ethernet
> port is (should be the one that does not have a "NO-CARRIER" status)
> and note it.
>
> next would be to give the machine an address
>
> 'ip address add dev <ethx> <ip>/24' where x is the number you noted in
> the previous step and <ip> your chosen ip
>
> next, to copy the file use
> 'scp <source> <destination>'
>
> where <source> is the file that you want to copy and <destination> the
> destination to where you want to copy. If either the <source> or the
> <destination> is a remote(ie non local) file, use the syntax
> <user>@<host>:<absolute path> where
> <user> = your remote username
> <host> = The remote host
> <Absolute path> = The absolute path to the file location
>
> If none of this makes sense, write back, and I will see if I can make
> it easier to understand.
>
> Regards
> Ian
>>
>>
>> --
>> Douglas E Knapp
>>
>> Open Source Sci-Fi mmoRPG Game project.
>> http://sf-journey-creations.wikispot.org/Front_Page
>> http://code.google.com/p/perspectiveproject/
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>




More information about the ubuntu-users mailing list