
نوشته اصلی توسط
Iran Web Host
سلام دوست من
مشکل شما با اکانت FTP هست. یوزر رو بدون @domain چک بفرمایید ببینید مشکل حل میشه؟ من خودم از filezilla server استفاده کردم و مشکلی ندارم.
کد خطا رو ملاحظه بفرمایید:
کد:
331 user *****_ ok. Password required
530 login authentication failed
login failed.
اگر از صحت اطلاعات ftp مطمءن هستید پورت های مربوطه رو هم چک کنید.
با یوزر اصلی هاست هم تست کردم با هم خطا داد. پورت هم 21 هست.
خطا:
کد:
.onnected to 176.9.103.25
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 3 of 50 allowed.
220-Local time is now 19:26. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
500 This security scheme is not implemented
500 This security scheme is not implemented
KERBEROS_V4 rejected as an authentication type
Remote system type is UNIX.
Using binary mode to transfer files.
331 User ****_ OK. Password required
530 Login authentication failed
Login failed.
: No such file or directory
?Invalid command
?Invalid command
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.
شل اسکریپت:
کد:
#!/bin/bash
pg_dump IBSng > IBSng_"`date +%Y%m%d`".bak
HOST=176.9.103.25
USER=user
PASS=pass
ftp -inv $HOST << EOF
user $USER $PASS
put IBSng_"`date +%Y%m%d`".bak
bye
EOF