Can't access puTTy and filezilla

July 30, 2019 397 views
DigitalOcean

Hello there
I can't access my droplet using puTTy or filezilla ,I didn't touch anything i just created the droplet and facing that issue , how can i fix it?

5 Answers

You can check if your home IP address is not blocked on the droplet for some reason. I don't know if you're using CSF or just iptables. You can whitelist your IP address via the following command:

iptables -A INPUT -s IPaddr-j ACCEPT

Make sure to save the iptables to make the change permanent.

Alex

  • root@ubuntu:~# iptables -A INPUT -s IPaddr-j ACCEPT
    Bad argument `ACCEPT'

    • You can follow this article for all the iptables commands:

      https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands

      You can use these commands to allow incoming ssh access:

      sudo iptables -A INPUT -p tcp -s 15.15.15.0/24 --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
      sudo iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT

      Make sure to change the IP address with the IP of your home network.

      Alex

      by Mitchell Anicas
      Iptables is the software firewall that is included with most Linux distributions by default. This cheat sheet-style guide provides a quick reference to iptables commands that will create firewall rules are useful in common, everyday scenarios. This includes iptables examples of allowing and blocking various services by port, network interface, and source IP address.
      • Thanks Alex
        But nothing really helped me :(

        • You can ssh to the droplet using your mobile data and examine the /var/log/messages and /var/log/secure for the entries matching your IP address

          cat /var/log/messages | grep IP
          cat /var/log/secure | grep IP

          In this way we will gain some further information. Looking forward to your reply.

          Alex

          • Can't find the directories anyway I'm down to give you the vps info to check it out since im running out of mobile data if you would like to talk somewhere else discord / twitter

Hello,

Can you please let us know the exact output you see in puTTy and FileZilla when you try to connect? This will help us to track down the issue.

Alex

  • Hey Alex

    for filezilla :
    Error: Connection timed out after 20 seconds of inactivity
    Error: Could not connect to server

    for puTTy :
    Network error:Connection timed out

    • Have you tried rebooting the server? The ssh service might be offline or just not responsive.

      Can you perform a traceroute and see if you're able to connect to the server? You can check for packet loss as well (feel free to paste the output here as well)

      Run traceroute on Windows
      Open the Start menu.
      Click Run.
      To open the command line interface, type cmd and then click OK.
      At the command line prompt, type: For IPv4 - >

      tracert example.com 
      

      For IPv6 - >

      tracert -6 example.com
      

      Press Enter.

      Linux / Mac

      traceroute IPaddr or domain
      

      Let me know how it goes.

      Alex

      • 1 5 ms 4 ms 5 ms 192.168.0.1
        2 4 ms 12 ms 4 ms 10.10.55.2
        3 5 ms 29 ms 7 ms 10.10.109.1
        4 * * * Request timed out.
        5 80 ms 72 ms 69 ms 195.122.182.41
        6 * * * Request timed out.
        7 100 ms 97 ms 92 ms ix-ae-18-0.tcore1.fr0-frankfurt.as6453.net [195.219.50.49]
        8 81 ms 70 ms 72 ms 195.219.50.90
        9 * * * Request timed out.
        10 * * * Request timed out.
        11 * * * Request timed out.
        12

        I'm getting this

        • It seems like you're not able to get to your droplet. As mentioned have you tried rebooting it to see if it will make a difference?

          Alex

          • Yes i tried alex

            I can connect to the droplet using my mobile data (hotspot) but when i connect back to my home internet its not working

Sorry for the delay. Are you still experiencing the issue?

Alex

Do you have access to the droplet using alternative network? I know you mentioned you can access it via your mobile phone's network.

Can you also let us know the OS of the server and if you've installed any additional software on it that can prevent block you?

Alex

Have another answer? Share your knowledge.