Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

UNIX FTP........File transfer between UNIX and PC using ftp: I\'m trying to send

ID: 3735682 • Letter: U

Question

UNIX FTP........File transfer between UNIX and PC using ftp:

I'm trying to send a file from my computer to a different server using cmd. i know the steps:

ftp > ip address

login user: cat

password: *****

i'm in, but when i try to do this on my computer (laptop) it asks for a user name/password. I don't have a password on my laptop, nothing worked, so i put a password on it still "incorrect" i don't understand whats going on.

I'm suppose to use the "GET" command to my pc to get "Hw2" and send it to my schools server by using "SEND" command, but i'm stuck. Here's the directions....

Starting DOS window on the PC To start the client ftp application, perform the following on your PC: Click on Start -> run This will display a small prompt to type the command/program you want to run. Type cmd and then click OK. This will open a DOS command line window NOTE: Before you start the client ftp, you should change your drive on the PC to where you want to store the file from UNIX server or where your file is on the PC, if you are sending the file from PC to UNIX. Note down the drive letter that DOS displays like Y or C:" This were the files will be on the PC. Starting ftp and doing file transfer Client ftp will establish a connection to the server ftp program running on the UNIX side and then ask you to type the UNIX username followed by password. Type username and press Enter key as prompted; type password and press Enter key as prompted On successful login, client ftp will display the following prompt: Before you transfer files, set the file transfer mode to text mode (ASCII) by typing the following ftp command: ascii To send a file from PC to UNIX, type the following command: send PC-filename UNIX-filename xample: send program.s program.c To get a file from UNIX to PC, type the following command: get UNix-filename PC-filename Example: get hw1 hw1.txt To exit from clinet ftp, type the following command quit

Explanation / Answer

Hi,

I suppose, you are running ftp command on your windows laptop and would like to GET/SEND files from a remote Unix machine.

To exchange files with the remote machine, you must have access to the remote UNIX machine - that is the username and password at the remote Unix machine.
This is required to prevent any unauthenticated user from downloading or uploading files to the UNIX machine.

Note that - the username and password of your local window laptop do not matter.


As a solution, I suggest you try the following

If you have the Unix machine username and password, type them when using the ftp command

ftp > ip address
login user: <Unix machine username>
password: <unix machine password>


If this works, you are good to go, else try the following.
If you dont have the username and password, some FTP servers support anonymous users. You may try the following if it works

ftp > ip address
login user: <your email address>
password: anonymous

Type the password as-is. That is "anonymous" without any quotes.


If it still doesnt work, you will access to the remote UNIX machine. Check with your peers or the instructor for the username and password of the remote UNIX machine.


Hope this helps. Let me know how it goes or revert to me if you need more information.