The format is not correct. Please go to Evernote's original Linux Account and SSH configuration and use the user-friendly add account program adduser: addusermasteradduser to interactively prompt the user to enter necessary information to complete account creation. Add sudoer permission: addusermastersudo add local ssh configuration ~. Sshconfig: Host * ServerAl
The format is not correct. Please go to Evernote's original Linux Account and SSH configuration and use the user-friendly add account program adduser: adduser master adduser to interactively prompt the user to enter necessary information to complete account creation. Add sudoer permission: adduser master sudo add local ssh configuration ~ /. Ssh/config: Host * ServerAl
The format is not correct. Please go to Evernote's original Linux Account and SSH configuration and use the user-friendly add account program adduser: adduser master adduser to interactively prompt the user to enter necessary information to complete account creation. Add sudoer permission: adduser master sudo add local ssh configuration ~ /. Ssh/config: Host * ServerAliveCountMax 20 ServerAliveInterval 240 Host cherrot HostName XXX. XXX. XXX. XXX Port 22 User master add ssh Public Key Authentication ssh-keygen-t rsa-C "email@example.com" # create an ssh key pair, the existing ssh key can be ignored # The Public Key is saved in ~ /. Ssh/id_rsa.pub ssh-copy-id-I ~ /. Ssh/id_rsa.pub cherrot # Add the public key to the server and connect again. Check whether the public key authentication is used. (If you do not need to enter the password, you can log on to the server. This indicates that the public key authentication is successful ). After successful logon, we exit the root login session. The following operations are based on the master user session. Here I encountered an episode, Because I updated my ssh key pair, resulting in ssh authentication failure: Agent admitted failure to sign using the key. Reregister your private key to solve the problem: ssh-add ~ /. Ssh/id_rsa modify server sshd configuration/etc/ssh/sshd_config, when the key logon fails, it will die badly ......) […]
Original article address: VPS initial configuration + LNMP environment quick Configuration Guide. Thank you for sharing it with me.