无法使用lftp连接到服务器

我有一个lftp文件,我想执行使用下面的命令

lftp -f /usr/scripts/fileS.lftp 

如果我运行这个文件,我得到Delaying before reconnect:

现在在这个文件(fileS.lftp)我有以下代码

 open -u username,password server mput -E * close 

如果我运行open -u username,password server我得到以下错误Couldnt get a file descriptor referring to the console

我假设我需要允许我尝试连接的服务器上的连接,我该怎么做? 任何帮助将不胜感激。

我在服务器上使用这个构造:

 (cat /root/1and1-ftp.txt ; echo "put $FNAME") | /usr/bin/lftp 

其中/root/1and1-ftp.txt包含open -u user,pass host

我记得,我有一些麻烦,让-f some-file工作,所以我正在做这个总pipe的事情。