Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Update Cloud Username and Password
echo root:pass |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart
# username: root
# password: pass

This comment has been minimized.

Copy link
Owner Author

@shijiezhou1 shijiezhou1 commented Jul 1, 2020

run passwd to change new password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment