According to the error message, the logged user does not have rights to create folder, can you login there and try to create folder by invoking the command via CLI ?
this is incorrect. the username should be one word and no spaces allowed. if your real user has space the first word will be used as username and th next word after the space will be used as password. that can be a reason for the "Please login with USER and PASS" error. the script was not able to log in so therefore can not create your cirectory. it is also good to check the permission of the folder so you can verify if you have rights to create a directory.
mkdir Chanakya #To create directory with my name in $HOME
hash can be used in shell script except in this case. since you are inside the ftp prompt. remove it.
hi Inquirer,
To confirm you there are no spaces in user name and the "#" in the script is not there in actual script. AS i informed in earlier the directory is created in the server but still these error are there. Can u suggest a better method now to get files from that server.