Results 1 to 3 of 3

Thread: NcFTPput

  1. #1
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    NcFTPput

    Hi Guys,

    I found that I can upload files to the server at my hosting company via a script using ncftpput.
    Does anyone have experience with this program?
    I read in the documentation that I can use a configuration file to specify my login credentials.
    This works, but my question is even if ncftpput gets my user name and a password from a file that only I can access on my local machine, is that information still "visible" by anyone sniffing packets on the internet?
    Thank you,
    GG -----------

  2. #2
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: NcFTPput

    Yes ftp (or telnet) is not encrypted, so passwords would go through the internet as plain text.

    If you have ssh access to the server, scp or sftp would be much more secure, because they would all be encrypted. With ssh compression enabled in your ~/.ssh/config, scp or sftp may even be faster than ftp, despite encryption. While sftp in a text terminal looks similar to regular text ftp, for a graphic interface you could use the file manager in Ubuntu. File > Connect to Server..., and if you select SSH it would securely view and copy files to or from the server just like copying files around your hard drive.

    For scripting you could use scp, although, you may need to use keys without a password with only the public key in ~/.ssh/authorized_keys on the server (make sure that any keys put into that file do NOT wordwrap). Note that ~/.ssh/ on any computer (client or server) should have 700 permission (drwx------) and any files in that dir should have 600 permission (-rw-------). This explains ssh keys https://help.ubuntu.com/community/SSH/OpenSSH/Keys
    Last edited by efflandt; January 6th, 2014 at 05:35 PM.
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  3. #3
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: NcFTPput

    Thank you for the reply. That is what I pretty much thought.
    The thing is I have a really difficult time with ssh keys.
    It didn't always used to be this way, once upon a time everything worked as it should.
    Starting a few weeks ago, I started getting permission denied (Publickey) errors when trying to securely connect to the server.
    The only thing I've found to stop the error, at least until the next reboot, is to run ssh-add and readd my key.
    The key is in ~/.ssh and the directory is drwx------
    The files in the directory are -rw-------

    I don't know what the problem is, but it is really frustrating. My hosting company's solution is to use Filezilla, which I have set to use my private key.
    The thing is, I really want to upload from a script.
    Thank you,
    GG -----------

Tags for this Thread

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
  •