VMware vSphere

 View Only
  • 1.  vCenter Appliance SSH help

    Posted Jun 19, 2016 03:44 PM

    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.



  • 2.  RE: vCenter Appliance SSH help

    Posted Jun 19, 2016 03:49 PM

    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.



  • 3.  RE: vCenter Appliance SSH help

    Posted Jun 19, 2016 04:14 PM

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



  • 4.  RE: vCenter Appliance SSH help

    Posted Jun 21, 2016 07:23 AM

    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.



  • 5.  RE: vCenter Appliance SSH help

    Posted Jun 21, 2016 07:19 PM

    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.



  • 6.  RE: vCenter Appliance SSH help

    Posted Jun 23, 2016 01:32 PM

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

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

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

    Happy ssh'ing!



  • 7.  RE: vCenter Appliance SSH help

    Posted Apr 21, 2017 03:49 PM

    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



  • 8.  RE: vCenter Appliance SSH help

    Posted Apr 26, 2017 06:24 PM

    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.