Connect Azure Container Instance through SSH client and FileZilla like client to transfer files easily
Here is how you can connect the Azure container Image through your favorite SSH client like Putty or FileZilla like file transfer client for easy file access and transfer.
Note: I have used ubuntu container Image in my azure tenant. So, the steps can be slightly different depending up on your Linux flavor
You need to install and configure open-ssh client in your container instance as follows:
- First, access your container from Azure Portal or using the cmdlet:
az container exec –resource-group –name –exec-command “/bin/bash” - Install the following packages.
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 or 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 with the command
service ssh restart
Now, you are ready with connecting your Container instance through SSH client like Putty and FileZilla file transfer through 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)
Hope, you will have a hustle free access to your Azure Container Images through your favorite SSH client and file transfer client like FileZilla (y)
One response
j