![]() You can view the current configuration with echo $TMOUT. Please note that you can't use the Appliance Shell when you log in using an ssh key, so make sure to change the shell to bash: # chsh -s "/bin/bash" root Disable or Increase Shell Session TimeoutĪs a security feature, you are automatically logged out after being inactive for 15 minutes. Now you should be able to connect to the vCenter Appliance with your key. ![]() Just add your key to the file by editing it with vi, or with echo/pipe: # echo "ssh-rsa AAAAB fgrehl" > /root/.ssh/authorized_keys The vCenter Appliance already has a preconfigured authorized_keys file. If you are not familiar with SSH Public Key Authentication, read this post where I am explaining the basics. Public Key authentication is an authentication method that relies on a generated public/private key pair and enables the login without entering a password. When working with Linux you typically use SSH keys instead of passwords to log in. If you want to revert this change later and reactivate the Appliance Shell, change the default shell back to /bin/appliancesh: # chsh -s /bin/appliancesh root Public Key Authentication To be able to connect with WinSCP, the default shell has to be configured to /bin/bash: # chsh -s "/bin/bash" root Max supported packet site is 1024000 B.Ĭannot initialize SFTP Protocol. When you use WinSCP to connect to the vCSA, the following error is displayed: This does not work out of the box because the default shell for the root user has been configured to Appliance Shell instead of Bash. To transfer files between your PC and the vCenter Appliance you typically use WinSCP or similar tools. ![]() To open the fully-featured Bash, just type "shell". When the vCenter is already deployed you can enable SSH in the "Appliance Management".Īppliance Management ( > Access > Edit > Enable SSH LoginĪfter connecting to the vCenter with SSH you see the proprietary Appliance Shell. ![]() SSH access to the vCenter Server Appliance is disabled by default but can be activated during the deployment wizard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |