ftp to transfer file via ssh

Discussion in 'Site & Server Administration' started by usf, Nov 26, 2010.

  1. #1
    ftp hostname/ip address . Give username and password. Use put command to upload the file to the remote server.

    Please expansion this command:

    Can I run this on old server or new server.

    And what are the right path that it deduct correctly.
     
    usf, Nov 26, 2010 IP
  2. underground-stockholm

    underground-stockholm Guest

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not sure if I understand you correctly. FTP is a different protocol than SSH, so if you want to transfer files in encrypted form so people can't get them or your passwords by sniffing network traffic, you might want to look into using sftp or scp instead of ftp.

    That said, you run the ftp command on the client machine, where you have files that you want to transfer to the server machine. You change path to the correct directory with the "cd" command. You will also want to change to binary mode with the "bin" command, so any binary data (images and so on) don't get destroyed in the transfer.

    The whole session will look something like this:

    $ ftp my.fancy.server
    Username: lamex
    Password: lamex-pass
    > bin
    > cd public_html
    > put index.php
    > quit
    $
     
    underground-stockholm, Nov 27, 2010 IP
  3. Annamina

    Annamina Guest

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    FTP and SSH are quite different. SFTP is what you use to transfer files via SSH port.
     
    Annamina, Dec 1, 2010 IP