Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, April 22, 2019 10:43 AM
Hello.
I'v configured a server ubuntu 18.04 in Azure, but when I try to access an external FTP server using a command line, I got this error:
Login failed.
Remote system type is Windows_NT.
ftp> 530 User cannot log in, home directory inaccessible
The credencial and address are correct, because I use the same informations in another Ubuntu 18.04 (local) and its work..
At shell,i'm doing
ftp ftp.server.com.br
user (ask)
password (ask)
Could someone help me ?
Thanks.
All replies (9)
Monday, April 22, 2019 11:30 AM
Hi,
I assume your FTP server is in Azure.
If you get a prompt for User name and password, then Connectivity is there. Now, we need to look into other aspects.
What mode are you using to connect? (Active or Passive)
Can you use FTP client such as FileZilla in Passive mode to connect?
Also make sure the Passive ports are open in NSG.
Regards,
Msrini
Monday, April 22, 2019 12:13 PM
Hello,
Thanks for answer me.
Sorry, my FTP server is out azure...
I think the ports are closed, and its a security problem.
How can I check passive ports are open in NSG ?
Monday, April 22, 2019 12:29 PM
So you are trying to access FTP server from Azure VM. Correct?
If you use command line, it will not work.
Try using 3rd party FTP client from Azure VM. Also use Passive mode. By default Azure NSG allows outbound traffic. So no changes are required in NSG.
Regards,
Msrini
Monday, April 22, 2019 12:50 PM
ah..
Well, and if I changed my external ftp server to inside azure (I'm thinking in created a ftp server in Linux Machine) it should work ?
Monday, April 22, 2019 12:55 PM
It depends on the client from where you are accessing the FTP server.
If it is an Azure FTP active client, it will not work. You can check the Wiki which I have mentioned for reference.
Regards,
Msrini
Monday, April 22, 2019 2:42 PM
I don't know if only Azure FTP Active client has this limitation..
I installed other FTP Client and the same error. I'm very frustated, because in my Ubuntu local instalation work perfectly...
999_FluentFTP.FtpCommandException: User cannot log in, home directory inaccessible.
at FluentFTP.FtpClient.Authenticate(String userName, String password)
at FluentFTP.FtpClient.Connect()
Monday, April 22, 2019 3:36 PM
You can take a packet capture in the client and check what's going on. Without which suggesting an action is not possible.
Regards,
Msrini
Friday, April 26, 2019 6:16 AM
Hi,
Do you have an update for me?
Please 'Mark as answer' if any of the replies helped, so that others in the community who are looking for similar question, can benefit from it.
Regards,
Msrini
Friday, May 3, 2019 7:02 PM
Any update on this issue?
If a suggestion was useful, remember to upvote and mark as answer so others in the community can easily find it.