VMware Cloud Community
Pixa241
Contributor
Contributor

vCenter Appliance SSH help

So not matter if I use root@localos or administrator@vsphere.local on my vCenter6 Appliance, when I run a command I get user is not authorized to run this command. Why am I not authorized. Passwords are correct, not sure what to do to fix it as I need to get into the bash shell.

7 Replies
npadmani
Virtuoso
Virtuoso

please use root user to login when you do ssh into your VCSA.

that will allow you to work with all the command that you want to.

Narendra Padmani VCIX6-DCV | VCIX7-CMA | VCI | TOGAF 9 Certified
0 Kudos
Pixa241
Contributor
Contributor

I am logging in as root@localos and i get the same error.

0 Kudos
kontranavoj
Contributor
Contributor

You must login using administrator's credentials for your SSO domain.

For example, if your SSO domain is example.local, then use administrator@example.local as your admin username with password configured during setup.

Pixa241
Contributor
Contributor

Anybody have ideas. It seems like I have the same issue as the one in this thread Re: Unable to logon VMware vCenter Appliance 5.5 with Root but that was on 5.5. I am on 6 U2. I can log into VAMI and DCUI but ssh and I get Access Denied error. VMWare support says I have to redeploy my VCSA and re set it up but that is not plausible and would take a lot of time.

unsichtbare
Expert
Expert

The login for vcsa using ssh is: root  (not root@localos -see the last screenshot)

sshroot.png

administrator@ssodomain.tld (administrator@vsphere.local) will not work as it is not authorized to use the API:

sshadministratorat.png

And here's what happens when you use: root@localos

rootat.png

Happy ssh'ing!

+The Invisible Admin+ If you find me useful, follow my blog: http://johnborhek.com/
0 Kudos
miguelvelezwhit
Enthusiast
Enthusiast

Here's what I'm seeing when I try to use the shell to verify some SNMP settings:

login as: administrator@vsphere.local

VMware vCenter Server Appliance 6.0.0.20100

Type: vCenter Server with an embedded Platform Services Controller

administrator@vsphere.local@10.2.5.165's password:

Last login: Fri Apr 21 13:02:08 UTC 2017 from fdr2vg035p.flowers.foods on pts/0

Last login: Fri Apr 21 13:10:30 2017 from fdr2vg035p.flowers.foods

Connected to service

    * List APIs: "help api list"

    * List Plugins: "help pi list"

    * Enable BASH access: "shell.set --enabled True"

    * Launch BASH: "shell"

Command> shell

User 'administrator@vsphere.local' is not authorized to run this command

Command>

and then, when I try 'root'; which is supposed to be the superAdmin by default:

VMware vCenter Server Appliance 6.0.0.20100

Type: vCenter Server with an embedded Platform Services Controller

root@10.2.5.165's password:

Last login: Fri Apr 21 12:53:14 UTC 2017 from fdr2vg035p.flowers.foods on pts/0

Last login: Fri Apr 21 13:03:53 2017 from fdr2vg035p.flowers.foods

vc-bake:~ #

vc-bake:~ # help pi list

-bash: help: no help topics match `list'.  Try `help help' or `man -k list' or `info list'.

vc-bake:~ # pi list

vc-bake:~ # shell

-bash: shell: command not found

This is becoming majorly frustrating.  I'm hoping that someone has discovered the flaw and fixed it.  I can't believe that it's nearly mid-2017 and this still is a problem.  Can anyone shed some light over what's happening?

TIA,

Migs

0 Kudos
unsichtbare
Expert
Expert

This is not a problem or in error. when you reach the command prompt: vc-bake:~ #

root@10.2.5.165's password:

Last login: Fri Apr 21 12:53:14 UTC 2017 from fdr2vg035p.flowers.foods on pts/0

Last login: Fri Apr 21 13:03:53 2017 from fdr2vg035p.flowers.foods

vc-bake:~ #

you are at the Linux command prompt. From here you can do anything you can with a traditional full Linux server OS. Try:

cat /etc/hosts

date

cat /etc/sysconfig/networking/devices/ifcfg-eth0

Each will return information specific to your installation.

+The Invisible Admin+ If you find me useful, follow my blog: http://johnborhek.com/
0 Kudos