Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Restoring backup files from a USB drive to the /var/www/ location

  1. #11
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Restoring backup files from a USB drive to the /var/www/ location

    My old server was 12.04 and when I went to up grade it to 14.04 it messed it up.
    Note that /var/www/ on apache2 of 12.04 is not /var/www/html/ on apache2 of 14.04. So I guess you need to work out first this problem to let your website show up (even on your local network).

    Now on the ssh and ftp issue. Since you can ssh to the server (using your local network) then ssh-server is running. If you want to ssh from the outside internet, we have to troubleshoot your firewall settings first, on your server and on your network devices.

    What is the output of "sudo netstat -tulpn" on the ubuntu 14.04 server? Did you modify any iptables settings? What is output of "sudo ufw status"?
    On your network, did you make any changes that restricted access to ssh port 22?

    On a computer using the outside internet, try this on the command line and let's see the output. This will give us some more ideas on what is happening between your computer and the server.
    Code:
    ssh -vvv irv@205.243.122.13
    Last edited by nerdtron; September 19th, 2014 at 07:46 AM.

  2. #12
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Restoring backup files from a USB drive to the /var/www/ location

    Quote Originally Posted by nerdtron View Post
    Note that /var/www/ on apache2 of 12.04 is not /var/www/html/ on apache2 of 14.04. So I guess you need to work out first this problem to let your website show up (even on your local network).

    Now on the ssh and ftp issue. Since you can ssh to the server (using your local network) then ssh-server is running. If you want to ssh from the outside internet, we have to troubleshoot your firewall settings first, on your server and on your network devices.

    What is the output of "sudo netstat -tulpn" on the ubuntu 14.04 server? Did you modify any iptables settings? What is output of "sudo ufw status"?
    On your network, did you make any changes that restricted access to ssh port 22?

    On a computer using the outside internet, try this on the command line and let's see the output. This will give us some more ideas on what is happening between your computer and the server.
    Code:
    ssh -vvv ssh irv@205.243.122.13
    irv@wabasha-server:~$ sudo netstat -tulpn
    [sudo] password for irv:
    no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1017/mysqld
    tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 631/smbd
    tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1249/perl
    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 707/vsftpd
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 872/sshd
    tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 631/smbd
    tcp6 0 0 :::139 :::* LISTEN 631/smbd
    tcp6 0 0 :::80 :::* LISTEN 1094/apache2
    tcp6 0 0 :::22 :::* LISTEN 872/sshd
    tcp6 0 0 :::445 :::* LISTEN 631/smbd
    udp 0 0 0.0.0.0:45048 0.0.0.0:* 654/dhclient
    udp 0 0 0.0.0.0:68 0.0.0.0:* 654/dhclient
    udp 0 0 192.168.1.255:137 0.0.0.0:* 959/nmbd
    udp 0 0 192.168.1.105:137 0.0.0.0:* 959/nmbd
    udp 0 0 0.0.0.0:137 0.0.0.0:* 959/nmbd
    udp 0 0 192.168.1.255:138 0.0.0.0:* 959/nmbd
    udp 0 0 192.168.1.105:138 0.0.0.0:* 959/nmbd
    udp 0 0 0.0.0.0:138 0.0.0.0:* 959/nmbd
    udp 0 0 0.0.0.0:10000 0.0.0.0:* 1249/perl
    udp6 0 0 :::42281 :::* 654/dhclient
    I didn't modify any iptables settings.

    i
    rv@wabasha-server:~$ sudo ufw status
    Status: inactive
    I am not sure about restricted access to ssh on port 22. I don't have it set in my port setting on my router.
    ports.jpg

    Output from "ssh -vvv ssh irv@205.243.122.13"

    irv@wabasha-server:~$ ssh -vvv ssh irv@205.243.122.13
    OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    ssh: Could not resolve hostname ssh: Name or service not known
    Last edited by irv; September 18th, 2014 at 01:42 PM.
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  3. #13
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Restoring backup files from a USB drive to the /var/www/ location

    Output from "ssh -vvv ssh irv@205.243.122.13"

    irv@wabasha-server:~$ ssh -vvv ssh irv@205.243.122.13
    OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    ssh: Could not resolve hostname ssh: Name or service not known
    Sorry the above was tried from my lan not over the Internet.
    I will be on the road later today and I will give it a try then and repost it.

    EDIT: Okay, I ran the command again to ssh to my server over the Internet and got the same message.
    I am having other issues not http-ing to website and not able to FTP to domain name. I believe the problem is with the host name i check with the hosting server to make sure the hostname was pointing to the ip address 205.243.122.13 and it was. I am thinking it has something to do with one of my config files on my server but I am not sure which one and where. Before my old server when down everything was working so I know the problem is not on my router either. When I get back home I will check line 19 in the /etc/ssh/ssh_config file to see if that is where the problem is.
    Last edited by irv; September 18th, 2014 at 06:22 PM. Reason: more information
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  4. #14
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Restoring backup files from a USB drive to the /var/www/ location

    Note that /var/www/ on apache2 of 12.04 is not /var/www/html/ on apache2 of 14.04. So I guess you need to work out first this problem to let your website show up (even on your local network).
    I forgot to say, that the apache test page did show up when I went to the URL "wabasha-server.net" but I deleted the directory "html" because I didn't want a webpage. On my old server I just wanted the list of files and directories. most were audio file and I could just select them and play them in a browser. But for some reason they do not show up even if I type them in.
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  5. #15
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Restoring backup files from a USB drive to the /var/www/ location

    I have been moving around today so I tried this command again:
    Code:
    Output from "ssh -vvv ssh irv@205.243.122.13"
    This time I got this:
    irv@irv-Q500A:~$ ssh -vvv ssh irv@205.243.122.13
    OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to ssh [208.69.32.145] port 22.
    debug1: connect to address 208.69.32.145 port 22: Connection timed out
    ssh: connect to host ssh port 22: Connection timed out
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  6. #16
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Restoring backup files from a USB drive to the /var/www/ location

    Sorry it was a typo on my part. It should be:
    Code:
    ssh -vvv irv@205.243.122.13
    Alright, from your router port forwarding, there is no entry there for port 22. You should setup port 22 on the router to forward to the server. Then try again.
    Testing to see if port 22 is open. Try this from the outside network
    Code:
     telnet 205.243.122.13 22
    Then try ssh again:
    Code:
    ssh -vvv irv@205.243.122.13

  7. #17
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Restoring backup files from a USB drive to the /var/www/ location

    I am still home but I did the ssh -vvv irv@205.243.122.13 to see what would happen but couldn't get on the server. Then I open port 22 and everything works. I can even use
    Code:
    ssh -vv irv@wabasha-server.net
    and can get on my server. I will try it later on from outside my network and will post what happens.
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  8. #18
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Restoring backup files from a USB drive to the /var/www/ location

    Okay, I am going to mark this thread solved because I have things working now.
    I am on the road and the ssh to server is working. the command ssh -vv irv@server name is working from outside my network. and I have all my files back on my server.
    Thanks to all who helped.
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

Page 2 of 2 FirstFirst 12

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
  •