Created
October 29, 2018 19:49
-
-
Save vorobeij/178ad7812f0108705dbbd6fa8d071a73 to your computer and use it in GitHub Desktop.
mainframer setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create user on remote machine | |
scp remote_machine_setup.sh root@remote-machine:~/ | |
ssh remoteMachine | |
sudo bash remote_machine_setup.sh sj_1 "new_user_ssh_public_key" | |
# From local machine | |
# [email protected] - remote machine | |
# press enters | |
ssh-keygen -t rsa | |
ssh [email protected] mkdir -p .ssh | |
cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys' | |
ssh [email protected] "chmod 700 .ssh; chmod 640 .ssh/authorized_keys" | |
ssh [email protected] | |
# https://github.com/buildfoundation/mainframer/tree/3.x/samples/gradle-android | |
# https://www.youtube.com/watch?v=xysQXMaPaGw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment