Originally posted by: drag
FTP isn't very secure though. In fact it's a huge security hazard. I recommend strongly that you use something else if at all possible.
You see with FTP the username and password is transfered over the internet in PLAIN TEXT. That is anybody with a packet sniffer will see your user name and your password you type out very very very very easily.
If you have Linux (or a newer BSD with ssh with sftp support) then you can use 'sftp' which is a reasonable replication of FTP functions, but using ssh. Ssh is secure shell (obviously) and it supports various methods of authentication including password challenge response method and shared keys.
If you have ssh setup on the system your trying to access there are several methods you can use for accessing it as a file system..
http://fuse.sourceforge.net/sshfs.html
This is a 'FUSE' based file system. Fuse stands for 'file system in userspace' and it has been part of the 2.6.x series kernel for a while now. Any modern distro should have it as the 'fuse' module. Then you need to setup permissions for /dev/fuse and fusermount program. In Debian you do this by adding your using to the 'fuse' group.. I don't know about other distros.
I think sshfs is a improvement over the lufs stuff. But I never tried LUFS so I dont' know.
What that does is mount your sftp server as a directory in your file system. So it's usefull for all applications.
The nice thing about sshfs is that performance is very high even with the encryption overhead. It's faster then NFS on slower links. Also it requires no setup on the server end. Just as long as you have shell access over ssh and your ssh client supports sftp functions then it will work.
So once you get it all setup..
sshfs user@host:/directory ~/mountpoint
The downside is that it will hang if you loose your connectivity. To fix that you have to do a 'lazy' umount from a different terminal...
fusermount -uz ~/mountpoint
There are two other methods that I know of that is most usefull for when your using mostly KDE or Gnome apps.
Gnome has it's gnome-vfs stuff. You can access it either by openning up a nautilus window and hitting 'ctrl-l' and then going 'ssh://user@host'
Also you can go through the application menu in the 'places' section and choose 'connect to server'.
Doing that will add the ability to access the files on the ssh server via your gui's file dialog. Also this will work with FTP, Webdav and other protocols.
For KDE they have their KIO stuff. This allows you to do all sorts of neat psuedo file system stuff in konqueror.
The one dealing with ssh/sftp is 'fish'. So you would open up konqueror and go into the URL bar:
fish://user@host
Also they have support for ftp and other protocols.