Not able to upload file after connecting to server using put command

getting this error every time using put command and ls pls help me out .

Try to see if you can debug based on the error you see.

@Kiran I am trying to debug it from past 2 days not getting where i am doing it wrong .

You can use this as a reference. Try finding any more questions like this. You may find your answer.

i got this in return
ftp> pass
Passive mode on.
ftp> put upload.txt
Not connected.

reconnect to ftp and try again

yeah it worked now i am getting this am i going right ?? or something’s wrong here
ftp> put upload.txt
local: upload.txt remote: upload.txt
227 Entering Passive Mode (127,0,0,1,63,221).
150 Ok to send data.
226 Transfer complete.
40 bytes sent in 0.00 secs (14.7295 kB/s)
ftp> get download.txt
local: download.txt remote: download.txt
227 Entering Passive Mode (127,0,0,1,24,33).
550 Failed to open file.
ftp> pass
Passive mode off.
ftp> get download.txt
local: download.txt remote: download.txt
200 PORT command successful. Consider using PASV.
550 Failed to open file.

use absolute path for both remote and client
first get absolute path by pwd and use it acordingly

i had transfered the upload.txt to home directory successfully but in case of download.txt what i am doing is

running my ftp server in ftp_server directory and then
doing pass
then get download.txt

what wrong i am doing here
do i have to transfer this download.txt from ftp_server directory to home directory??

it should be like
get “localpath”/filename “remotepath”/filename


get /workspace/ftp_client/upload.txt /workspace/ftp_server/download.txt??

you are on right path do more research on it if doing on module 4 avoid workspace you have to create separate directory

after running ftp and using put i am getting-
ftp> put /home/crio-user/workspace/ftp_client/upload.txt
local: /home/crio-user/workspace/ftp_client/upload.txt remote: /home/crio-user/workspace/ftp_client/upload.txt
227 Entering Passive Mode (127,0,0,1,31,146).
550 Permission denied
please somebody help me…

From the output, you can see that the local and remote are the same file! Make sure you know which directories you are in(locally and remotely, use pwd and !pwd to know this) before doing the transfer.