Results 1 to 10 of 10

Thread: How to share files between two Ubuntu computers!

  1. #1
    Join Date
    Oct 2009
    Beans
    109
    Distro
    Ubuntu 12.04 Precise Pangolin

    How to share files between two Ubuntu computers!

    I can't seem to figure out how to even share files between my laptop and desktop. They are both Ubuntu 9.10. I thought maybe samba was the way but couldn't figure it out. I was looking at the ssh that comes with Ubuntu and been trying to get it to work but don't know what I'm doing wrong. I type:
    ssh username@computername and it give me a little info. Don't know what I'm suppose to do then. I looked at the network folder on my laptop and it seem to see it but everytime I click on it ask for a password and I can't get in since I don't know the right password. I'm not sure if this is the best software to use or not. Just wanted something to look at and transfer from my desktop to my laptop and vice versa. Thanks

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

    Re: How to share files between two Ubuntu computers!

    Go to Places > Connect to Server
    Pick ssh
    Enter ip address and use name
    Hit Enter
    Fill in password and user
    Then you can drag and drop files from each of you /home folders.

  3. #3
    Join Date
    Oct 2009
    Beans
    109
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to share files between two Ubuntu computers!

    what would be the ip address. Is it the one it show after I did the ssh username@computername or your internet. If its the ssh one it only showed it once and not sure where to find it. Thanks alot

  4. #4
    Join Date
    Apr 2007
    Location
    Eastern USA
    Beans
    415
    Distro
    Ubuntu

    Re: How to share files between two Ubuntu computers!

    Often if you type 'computername.local' in place of the ip address, it should work.

    If you're using the terminal the 'computername' can be found:
    Code:
    cat /etc/hostname
    But it's the name you set to your computer when you installed if that helps.

    Finding the IP address though:

    For guis:
    System > Preferences > Network Tools
    Click the drop down "Network Device"
    In the table you'll see both your IPv4 and IPv6 ip address

    for command prompt:
    Code:
    ifconfig
    Last edited by cong06; February 19th, 2010 at 11:40 AM.

  5. #5
    Join Date
    Oct 2009
    Beans
    109
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to share files between two Ubuntu computers!

    awesome that work, is there a way to make sure just these two computer can connect to each other only. I don't want someone to easily to get in my computer, or is it pretty safe this way.

  6. #6
    Join Date
    Jan 2008
    Location
    Norway
    Beans
    1,527
    Distro
    Ubuntu Development Release

    Re: How to share files between two Ubuntu computers!

    Quote Originally Posted by demonic_crow View Post
    I can't seem to figure out how to even share files between my laptop and desktop. They are both Ubuntu 9.10. I thought maybe samba was the way but couldn't figure it out. I was looking at the ssh that comes with Ubuntu and been trying to get it to work but don't know what I'm doing wrong. I type:
    ssh username@computername and it give me a little info. Don't know what I'm suppose to do then. I looked at the network folder on my laptop and it seem to see it but everytime I click on it ask for a password and I can't get in since I don't know the right password. I'm not sure if this is the best software to use or not. Just wanted something to look at and transfer from my desktop to my laptop and vice versa. Thanks
    You can quite easily share files on LAN with a program galled "giver" (made by the Linux Mint developers I think):
    Code:
    sudo apt-get install giver

  7. #7
    Join Date
    Apr 2007
    Location
    Eastern USA
    Beans
    415
    Distro
    Ubuntu

    Re: How to share files between two Ubuntu computers!

    Quote Originally Posted by demonic_crow View Post
    awesome that work, is there a way to make sure just these two computer can connect to each other only. I don't want someone to easily to get in my computer, or is it pretty safe this way.
    If you used the 'connect to server' option, then you're using ssh. Which is encrypted, but only as safe as your password.
    If you have a very secure password, then no one can even read information as you request it. If you have a lax password they can jump into your box and hijack stuff.

  8. #8
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to share files between two Ubuntu computers!

    Quote Originally Posted by demonic_crow View Post
    is there a way to make sure just these two computer can connect to each other only. I don't want someone to easily to get in my computer, or is it pretty safe this way.
    configure your firewall. e.g firestart is a nice and easy gui tool for that.

    further in /etc/ssh/sshd_config you can change the default port, e.g 1234

    than configure your firewall, incoming permissions
    e.g ssh port 1234 for 192.168.1.1 (change with the internal IP of your other PC). if you dont have static IPs, you can set a range of IP. But i would rather use static IPs on a network.

    >> network connections >> automatic to manual (enter the need info, IP which is your choice; dns, gateway, etc)
    To mark your thread as [SOLVED], use Thread Tools [at top]

  9. #9
    Join Date
    Mar 2010
    Location
    Metro-ATL
    Beans
    Hidden!
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: How to share files between two Ubuntu computers!

    I know this is an old thread, but thought I should point out that using fail2ban and a non-standard port for ssh will prevent almost all ssh-based attacks. For systems inside a firewall, I leave ssh on port 22, but for access over the internet, I use the router's port forwarding + translation capability to make the public IP + port something nonstandard - perhaps 30022 and translate that port to 172.16.2.44:22 on the internal machine.

    To help me remember which port I use, there's a ~/.ssh/config file that make connecting easy. No need to remember the port.

    Also, so you aren't tempted to have a trivial password that can be hacked, disable use of passwords and force ssh-keys to be used instead outside your internal LAN. ssh-copy-id makes this trivial to setup. http://blog.jdpfu.com/2011/08/23/sec...cking-failures has more information.

  10. #10
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,657
    Distro
    Ubuntu

    Re: How to share files between two Ubuntu computers!

    Please do't bump old threads to the top.

    Closed.

Tags for this Thread

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
  •