0

Trying to connect to a server ftp.sel2in.com but get

ftp
ftp> open ftp.sel2in.com

ftp: connect: No route to host

ftp>

Same with filezilla client

I'm able to ping and ssh into the server. After I ssh i can do an ftp from that shell. Not an admin of that server, own a folder on there with php and mysql (x10hosting.com if that helps)

tgkprog
  • 555
  • 1
  • 11
  • 28

1 Answers1

1

Have you tried using sftp? Also, if you have ssh access, you can use scp, which allows you to upload and download files. As ftp is not encrypted, it is highly recommended you find an alternative solution.

$ scp path/to/local/file me@domain.tld:/path/to/remote/file  # Download file
$ scp path/to/local/file me@domain.tld:path/in/home/directory  # Download file in home directory
$ scp me@domain.tld:/path/to/remote/file path/to/local/file  # Upload file

Whether you chose sftp or scp is up to you, but it is highly recommended to use over ftp, as ftp doesn't support encryption.

rsync allows for more complicated syncing procedures, and can also utilize ssh/scp.

You can set up your .ssh/config to make this easier and look into setting up ssh keys as well.


Many servers nowadays do not support ftp. Are you 100% sure that this server does? The ports are all filtered:

$ nmap -p 22,21 x10hosting.com
Starting Nmap 7.70 ( https://nmap.org ) at sometime
Nmap scan report for x10hosting.com (104.24.22.72)
Host is up (0.013s latency).
Other addresses for x10hosting.com (not scanned): 104.24.23.72

PORT   STATE    SERVICE
21/tcp filtered ftp
22/tcp filtered ssh

Nmap done: 1 IP address (1 host up) scanned in 12.73 seconds

Similar to debugging ssh, have you checked the server's ftp log to see if there are any details there?

earthmeLon
  • 11,247