question

Franko999-6564 avatar image
0 Votes"
Franko999-6564 asked ·

connect to container instance via FileZilla

Hello,

Im new to the cloud computing. I wanted to connect to my container instance via FileZilla FTP protocol. Could you pls help with what values should I provide when adding new connection. Specifically user and password, are these values the same as my azure portal login values?

Best regards,

Roberts9664-connection.png


azure-container-instances
connection.png (66.1 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ManuPhilip avatar image
0 Votes"
ManuPhilip answered ·

Hello Franko,

Here is how you can connect the Azure container Image through FileZilla client

You need to install and configure open-ssh client in your container instance as follows:
1. First, access your container from Azure Portal or using the cmdlet: az container exec –resource-group <Your resource group> –name <name of the container> –exec-command “/bin/bash”
2. Install the following packages. I have used ubuntu container Image for this purpose. So, for you, there can be small differences depending up on the Linux flavor you use

 apt-get update
 apt-get install vim
 apt-get install ssh

Now, edit the sshd_config file: vi /etc/ssh/sshd_config

Do the following changes: Un comment the entries as below:

 PermitRootLogin yes
 Port 22
 AddressFamily any
 ListenAddress 0.0.0.0
 ListenAddress ::
 PasswordAuthentication yes

Once the changes are done, restart the ssh service

 service ssh restart

Now, you are ready with connecting your Container instance through Filezilla Port 22.
Make sure that you have username and password ready. Set the password for root user, if you don't know it yet (passwd)



Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

Regards,

Manu

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You are my saviour man. Thank you and have a good day!

Best regards,

1 Vote 1 ·

Glad to hear that 😊

0 Votes 0 ·
vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT answered ·

@Franko999-6564
If you have the FTP service running on the container and the port is open, then you can connect. The username and password is the name and password that you gave while creating the ftp server.

If you are looking to SSH into the container, then you can use the CLI like the mentioned in the document.

 az container exec --resource-group myResourceGroup --name containername --exec-command "/bin/bash"



Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for the response man. I just didnt know how to create ftp server on container.



Best regards,




0 Votes 0 ·