Take pictures of the virtual machine and secure login settings

Camera: The current configuration of the virtual machine under identical backup. Between the version of the camera can be switched freely. To do: the menu Virtual Machine - "pictures (cluster camera is taking pictures of a cluster of virtual machines superior performed, which can back up multiple virtual machine clusters); view all camera case and the current position (virtual machine snapshot version control - "photographs - a" snapshot version control)
secure login: generate a public key and a private key, the command ssh-keygen -t rsa, (ie public and private key can press enter on the default location), set the key prompts for credentials to log landing that is password, bind a public key (public key registered) command: cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys (> represents the redirection file that is new or rewritten; >> represents the additional file ; first half of the id_rsa.pub file is a directory, the latter part of the directory to be consistent); certificate Login: open mobax, click on the left corresponding to the virtual machine ip, by username, then the left side of the search private directories, right-click the private key file name, click download, download to a local, quit the current session, again right-click the virtual machine ip, ssh click the advanced tab settings, check the box with the private key, the private key and just browse the local storage directory, click Save ok, (via xshell connect virtual machines can be found in a user name and login credentials to log in two ways, login credentials need to browse the local certificate and enter the login credentials password); disable a user name to log: edit sshd configuration file (vi / etc / ssh / sshd_config), find PasswordAuthentication yes instead PasswordAuthentication no (press i to enter edit mode, then press esc: wq), restarting sshd (service sshd restart) (xshell connection found again, the user name to log in has been disabled)

Guess you like

Origin blog.51cto.com/11437420/2409760