FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I have setup vsFTP and internally it works fine
I need to access vsFTP from office and use ssl. I generated a certificate, updated vsftp config file.
I have a netgear firewall, authorized sFTP on port 115 to be redirected to my fedora ip 192.168.1.11, also in iptables, I authorized port 115 TCP and UDP.
I use Filezilla but it gets stuck like this
Quote:
Statut : Connexion à mydomain.mycompany.fr:115...
Réponse : fzSftp started
Commande : open "salam@mydomain.mycompany.fr" 115
Error : delay crossed
Error : Impossible establishing connection to server
Then I did a telnet session as follows,
Code:
telnet mylinux 115
I discovered that I can not connect
Quote:
telnet: connect to address 127.0.0.1: Connection refused
I thought that this is what I am trying to do, sFTP? in fielzila I am using sFTP-SSH protocol.
Can you please elaorate or point me on a tutorial on how to use SCP or sFTP (do you mean sFTP protocol or a kind of a tool)
Thanks
vsftp = Very Secure FTP
This is still just ftp but has been kerberized to enhance security. One uses ftp clients to talk to it. The main use for this is for setting up standard ftp sites. It does not have the same security as scp and sftp. (That is to say it does NOT use ssh for transfer and authentication).
The other two do use ssh and are typically available wherever ssh is installed. (UNIX and Linux that is - on Windows you need something like PuTTY to do ssh and WinSCP to do scp).
scp = secure copy
scp copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh.
sftp = secure file transfer protocol
sftp is an interactive file transfer program, similar to ftp, which performs all operations over an encrypted ssh transport.
All of these have man pages - Typing each of "man vsftpd", "man scp" and "man sftp" should show you the relevant man pages. Also the man pages can be found on line with a simple Google search.
Dear MensaWater, I am not talking about the option of which tool to use.
I think there is a misunderstanding, correct me if I am wrong.
I am talking about setting my linux as an ftp server, then access it with any tool would it be sftp, filezilla, scp (I already use it to ftp from some servers) from another machine.
Mmy main issue, maybe I was not clear is about the setup of my server as an ftp server to be able to upload/download when I work outside my network by using any tool that works with sFTP protocol or scp.
My point is the tool you use is important in determining how to configure the server. You keep trying to mix "ftp" with "scp/sftp" and it shows a basic misunderstanding on your part.
scp and sftp do NOT talk to vsftp. Only ftp talks to vsftp servers.
scp and sftp talk to systems that support ssh.
At its most basic you should be able to transfer a file with:
So if you had a file named important on your local system and wanted to put it in your home directory on the server called sumo and your username on the server was billybob you'd type:
scp important billybob@sumo:/home/billybob
That would create a file called /home/billybob/important on the server sumo.
If you ran:
scp important billybob@sumo:/home/billybob/notsoimportant
That would rename the file on the server. (Assuming notsoimportant wasn't a directory.)
sftp has slightly different options but also uses the ssh framework.
There are other options such as what port sshd listens on (default is 22 but many people prefer to choose a different one for internet facing systems they want to use this on). Also if there are firewalls between you and the remote server you may need to deal with other considerations.
I'd try opening ports 20,21 and 990. Port 990 is for SSL, and FTP/SSL combo needs both. I've never actually tried to implement this, but it was recently mentioned in a night school class I took last spring. I'm not sure how to reconfigure SSL to listen on port 115 instead of 990.
Also, port 115 is NOT related to either of the ones you want. I had to look it up, and it's something called "simple file transfer protocol", I'm going to research it as I've only heard of tftp.
This link explains things if you scroll down: http://www.auditmypc.com/port/tcp-port-115.asp
I believe that it is MUCH easier to open port 22 while enabling SFTP. I've found that for what you are describing, doing so is MUCH easier and may already be running on your system. If that is the case, simply opening port 22 in your firewall should allow you to use SFTP to access your systems.
From a user perspective, SFTP looks just like FTP, although it uses the SSH protocol suite to encrypt the transmissions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.