Symptom
This problem is observed in the Azure deployments of FMCv only while using SSH key auth option.
After the deployment the SSH key based authentication is not working for the Azure user(not the 'admin' user).
Conditions
Azure marketplace deployments of FMCv only while using SSH key auth option.
Password Authentication works fine.
Workaround
Workaround:
===========
The password authentication works fine, so one of the options is to use the Password authentication.
Moreover this additional user is not used for any FMCv oprations.
In case the SSH key authentication is selected, as mentioned in the bug description 'admin' user is still able to login(SSH) using the password.
We have the below workaround using the above bhaviour:
1. SSH to the FMCv using admin user. (if available you may login via Azure UI VM console as well)
ssh admin@
2. After loggin in, go to the 'expert' mode
> expert
3. Switch to root user. (when prompted for password, use the admin user password)
$ sudo su
Password:
4. Verify the existence of 'authorized_keys' file in Azure user's path.
# /home//.ssh/authorized_keys
e.g. 'cisco' as azur user
# ls -lart /home/cisco/.ssh/authorized_keys
-rw-r--r-- 1 cisco cisco 553 Mar 27 17:13 /home/cisco/.ssh/authorized_keys
5. Copy the authorized_keys file to correct path and then change the ownership.
# mkdir -p /Volume/home//.ssh/
# cp -arp /home//.ssh/authorized_keys /Volume/home//.ssh/
# chown -R : /Volume/home//.ssh
e.g. 'cisco' as azur user
# mkdir -p /Volume/home/cisco/.ssh/
# cp -arp /home/cisco/.ssh/authorized_keys /Volume/home/cisco/.ssh/
# chown -R cisco:cisco /Volume/home/cisco/.ssh
6. Now you should be able to login using the SSH key via the azure user
ssh -i @