Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: how do i connect two ubuntu computers via a cross over cable

  1. #1
    Join Date
    Jul 2008
    Beans
    78

    how do i connect two ubuntu computers via a cross over cable

    hi
    i have a desktop with ubuntu 8.10 and a laptop with ubuntu 9.04. all i have is a cross over cable no router or anything like that and i'd simply like to get files from the desktop computer to the laptop. can someone pls give me step by step instructions on how to do this?

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: how do i connect two ubuntu computers via a cross over cable

    Connect the cables then go to Places > Connect to server

    Pick ssh
    Enter ip address and enter.

  3. #3
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how do i connect two ubuntu computers via a cross over cable

    You will need to set up a manual (static) address on both machines in the same subnet. Might need to list the other machine as gateway... but try it first without. You will need to install a file server one one/both machines - Ubuntu comes with clients for most filesystems, but must have server installed for SSH, NFS, Samba, etc.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  4. #4
    Join Date
    Jul 2008
    Beans
    78

    Re: how do i connect two ubuntu computers via a cross over cable

    Quote Originally Posted by Iowan View Post
    You will need to set up a manual (static) address on both machines in the same subnet. Might need to list the other machine as gateway... but try it first without. You will need to install a file server one one/both machines - Ubuntu comes with clients for most filesystems, but must have server installed for SSH, NFS, Samba, etc.
    can you recommend a server? when i try places ->connect to server choose ssh and input the other computers ip address ubuntu connects to my local machine and show only the contents of my local machine. btw both machines have the same main user name and password, is this a problem?

  5. #5
    Join Date
    Feb 2008
    Beans
    1,031

    Re: how do i connect two ubuntu computers via a cross over cable

    Between two ubuntu machines the easiest is probably to install the package openssh-server.

    this will do it from a terminal:

    Code:
    sudo apt-get install openssh-server
    and enter your login password when asked.

    Alternatively just install it from synaptic package manager.

    You can then connect from a machine to the one with the server package installed on it(an openssh-clent is installed by default, so they both have that). For ease of use having the server on both is probably best, but it is not strictly necessary.

    Having the same user details is absolutely fine.

    Oh and do make sure that you have network connectivity using something like ping before you go any further, because obviously that is the first and most important requirement

    Hope that helps

  6. #6
    Join Date
    Jan 2008
    Beans
    333

    Re: how do i connect two ubuntu computers via a cross over cable

    So, to recap:

    -on both computers "sudo aptitude install ssh"
    -on both computers "sudo nano /etc/network/interfaces"
    -set one to
    Code:
    auto eth0
    iface eth0 inet static
    network 10.0.0.0
    gateway 10.0.0.1
    address 10.0.0.2
    netmask 255.255.255.0
    broadcast 10.0.0.255
    -set the other to:
    Code:
    auto eth0
    iface eth0 inet static
    network 10.0.0.0
    gateway 10.0.0.1
    address 10.0.0.1
    netmask 255.255.255.0
    broadcast 10.0.0.255
    -confirm the first one can reach the second:
    "ping 10.0.0.1"

    -transfer files from one to the other:
    "scp junglejuice@10.0.0.1:/home/junglejuice/Desktop/porn.jpg /localpath/porncollection/"

  7. #7
    Join Date
    Jul 2008
    Beans
    78

    Re: how do i connect two ubuntu computers via a cross over cable

    thanks all for the help, but it's just still not working. i've installed openssh server on both machines, they are definitely connected cause i can ping one from the other and when i disable networking on one computer the other tells me that a network connection has been dropped. is it possible that they are connected but i'm just not using the right interface to transfer files between them? i've tried places>connect to server change to ssh and enter the other computers ip address in the server text field. but all that does is show me the file system of the local machine that i ran the command from (not the other machine's file system). i also tried the scp command as per anystupidname's instruction and ubuntu tells me that the file has copied across but when i check for the file on the other computer, it's not there. does anyone have any further suggestions, i'm sure the problem is really simple and i'm just being a dope...

  8. #8
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how do i connect two ubuntu computers via a cross over cable

    what file did you copy across?

    If you get the name of it eg myfile.txt

    go to the other machine you copied it to and open a terminal window

    in the window type

    find . -name myfile.txt

    I reckon you are looking for it on your desktop when its in your home folders

    in windows world its in documents and settings/yourname

    and not documents and settings/yourname/Desktop

    However, the find should tell you where its at
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  9. #9
    Join Date
    Feb 2008
    Beans
    1,031

    Re: how do i connect two ubuntu computers via a cross over cable

    can you ssh into the other box.

    i.e. at a terminal what happens if you type:
    Code:
    ssh user@192.168.0.1
    replacing user with your username and 192.168.0.1 with the remote boxes ip address.

    If ssh is working you should get prompted for your password, then be presented with a terminal prompt which is a terminal on the remote machine..you can check this by looking around the file system with the ls and cd commands.

    If that works then ssh is functioning and you are just screwing up the sharing somewhere.

    Hope that helps

  10. #10
    Join Date
    Jul 2008
    Beans
    78

    Re: how do i connect two ubuntu computers via a cross over cable

    Quote Originally Posted by issih View Post
    can you ssh into the other box.

    i.e. at a terminal what happens if you type:
    Code:
    ssh user@192.168.0.1
    replacing user with your username and 192.168.0.1 with the remote boxes ip address.

    If ssh is working you should get prompted for your password, then be presented with a terminal prompt which is a terminal on the remote machine..you can check this by looking around the file system with the ls and cd commands.

    If that works then ssh is functioning and you are just screwing up the sharing somewhere.

    Hope that helps
    when i input the command substituting my username and the remote computers ip address, ubuntu asks me for a confirmation to continue by typing "yes" then it asks me for a password, which i input and i get taken to a terminal prompt, but when i run the ls command ubuntu lists the contents of the local computers home directory (not the remote computer) why does this keep happening?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •