Results 1 to 5 of 5

Thread: How to upload files?

  1. #1
    Join Date
    Feb 2011
    Beans
    25

    How to upload files?

    Hi,
    I'm new to Ubuntu Server (but familiar with Ubuntu). I installed Ubuntu Server 12.04 LTS for the first time today. I successfully installed apache, php, mysql, and vsftpd. So I can connect to http://192.168.x.x and ftp://192.168.x.x from my other computer.

    So I'm trying to find a way to upload my index.php to the apache root folder of my server computer. How do I do this?
    with SSH?
    with FileZilla?

    any would be great, I just need a direction. And I would love it if I can use a GUI on my desktop computer (like FileZilla drag&drop)

    I'm aware that using GUI on the server leads to security risks, but using the GUI on my desktop (which will -hopefully- connect to my server) does not impose any security risks, right?

    And one final question, (you can answer this by proposing a google search term ) I can connect to 192.168.x.x from my other computer (which is connected to same modem), but can I connect to my server from any other network? or is this only local? If the latter, how do I make it available for connection from the internet, and moreover, how do I make it host my domain name?

    Thanks !

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

    Re: How to upload files?

    Install ssh
    sudo apt-get install openssh-server

    Once done, you can use a program like winscp on your windows box to upload or download files using a secure copy mechanism

    From another linux machine, the command line is a lot easier,

    scp myfile user@ipaddress:/home/myhomedir/upload

    to upload

    scp user@ipaddress:/home/myhomedir/upload/myfile

    to download to the current directory
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

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

    Re: How to upload files?

    For part two, just look for port forwarding .... its more to do with your router configuration .
    For ssh you would port forward request on port 22 to a 192.168.1.x machine which is running ssh,
    to connect to a web server on your internal network you would port forward port 80 to the ip address of your machine internally and so on
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  4. #4
    Join Date
    Oct 2011
    Location
    /root
    Beans
    956
    Distro
    Ubuntu

    Re: How to upload files?

    Sounds like you would be better off using a FTP program with a UI on your desktop to connect to your FTP service running on your server. Filezilla is an example of such a program with drap and drop functionality and no, doing so does not compromise your servers security.


  5. #5
    Join Date
    Jul 2011
    Beans
    16
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to upload files?

    Quote Originally Posted by harbimilan View Post
    Hi,
    I'm new to Ubuntu Server (but familiar with Ubuntu). I installed Ubuntu Server 12.04 LTS for the first time today. I successfully installed apache, php, mysql, and vsftpd. So I can connect to http://192.168.x.x and ftp://192.168.x.x from my other computer.

    So I'm trying to find a way to upload my index.php to the apache root folder of my server computer. How do I do this?
    with SSH?
    with FileZilla?

    any would be great, I just need a direction. And I would love it if I can use a GUI on my desktop computer (like FileZilla drag&drop)

    I'm aware that using GUI on the server leads to security risks, but using the GUI on my desktop (which will -hopefully- connect to my server) does not impose any security risks, right?

    And one final question, (you can answer this by proposing a google search term ) I can connect to 192.168.x.x from my other computer (which is connected to same modem), but can I connect to my server from any other network? or is this only local? If the latter, how do I make it available for connection from the internet, and moreover, how do I make it host my domain name?

    Thanks !
    You have several options here. First of all, do you have a static IP address? If you do, you can connect to the apache server from any location by simply typing http://your_static_IP_address. As for the domain name, you need to set up a DNS server to be able to do that. If you are new to linux, this might be a very difficult task.
    What OS are you running on your client PC - Windows/Mac/Linux? Also, if you want to access the files on your web server from outside your home network you need an internet connection with a static IP and I would suggest, for security reasons, to set up an ftp server and upload files via filezilla or any other ftp client. If you are accessing the server from a windows pc from your home network, then set up a samba share and point to the root directory of your web server. If you are using Linux, then you can access the file system on your server via sftp from nautilus (or any other file manager, depending on your distro). If you use nautilus, then open it, hit Ctrl+L and type sftp://ip_address_of_server and use your login data for the server.
    Hope this helps.
    Cheers!

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
  •