connect to container instance via FileZilla

Franko999 161 Reputation points
2020-06-10T09:30:25.51+00:00

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
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
505 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 14,541 Reputation points MVP
    2020-06-10T21:31:31.397+00:00

    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


1 additional answer

Sort by: Most helpful
  1. vipullag-MSFT 18,901 Reputation points Microsoft Employee
    2020-06-10T14:39:10.843+00:00

    @Franko999
    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.