kokkos / kokkos-tutorials

Tutorials for the Kokkos C++ Performance Portability Programming Ecosystem
https://kokkos.org
Other
301 stars 100 forks source link

Cloud Instances for Oakland Bootcamp #16

Closed dhollman closed 2 years ago

dhollman commented 5 years ago

Please insert your email address in this spreadsheet:

https://docs.google.com/spreadsheets/d/1IycNldowMYoskkRVRm2B6h1V8P-DQUZ-aBvZm86NLiE/edit?usp=sharing

Use the following private key to SSH into one of these instances once you claim an instance:

-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAzCFYf4M2l8YHMQqbkrEifcn6BFtVtERskjKoSnpnO+ft3HDzZ3vv0XJuNB7H
7BFEH+Nymn7sJmpGQeGuyVN0eLyHSbYHoXtQwABfNTEMHnJgMtMRkRaBmC5lo58h9/UBaEWfagm/
J2Ncqo71Dr90b/m3G2ZgEq76GPseRM88kRevwSCd1IR8gy42gvV//8HmkIbEgjfw54TG+VCVA6Sb
vkxDGqRlu8+BTVxIjZ/e7iUstyAUHLxPq9k+/pUMSyYl2jGRaZbuIaWgUWCVNRzCbqdbbNlu1Fc1
om0q1yc94gBQNf3U52QbVAYdyJ+xGN8Fygy/iiVJBU+rlvw2wUCVEwIDAQABAoIBAQCj2PAsCao8
UNtc5eLR8BR7Wy+vZ5B3TaTIBJlIjs9mKlemZZM6MSThvTPv6fUW6xT/c5V9pPrwKsWSBBBD0RTg
BJOi+tVNLKo4MxQ4odHUboIAyaKEDsie2j8DAqxFVwd2Jsw6VPB2MS8kR/Mzj0Fqz8nF2HqtBH4C
py44lQ9MdYMYH5tsjLqy0ha79r0U1Ny5jq6Iu93CfiHMQBUTpr4xbaL/LUbsVDtoynaZtRbfD/up
hqi0pnpRIJs2r17zN8UhOb75lWSFuRQVLFtAesrslNebCQILmsirDDA18gzuSTYfbMcj0yMD4/qc
palcihCY9K72ICCVEAYfCr84mc7hAoGBAPLzr33XGTKQVFaEyALwI9XQWDmkrtU2GX4oFk6S4rg1
ZwsRBw19pdn0CPgnIylpIrY/paY9xMcn3pfJcMbrGqIqx1GLE+KgV2b8n09a8J/WG09KowJe+nra
Z4gMETdWVImVz+PoXmMUxUdll7Gae6acFxmZC2m45/w7/rq2JnSPAoGBANcX6AvSedVyFA1H3ps8
V2BHH9hTAJ5WtQVf8dXAfedjYoVQfV74ZmO35xDDtlh9Z2a2EftuupH1ZPnTWbKgWRrf1TwYk+lx
jLOgUhRxZTaDSoX0Jw9AVQ8ArxfBXISlYBvYeya9SxpXjU7XNEYbOupeHNqBn2C0Nx7rt5cB2cE9
AoGASbVK2cfneiK1o6YXNGT8ykKycZKYBFGsfEzXL7F6nV5+S6o31Iz5Q125Vugwz8B46of2zq/Q
wodDDhPsZj0v0GFgJUonl0sEGVetUZsKg8Omd3Dycaa1IY6feHQIyRwk+7T65G88K51CmP2mfxia
SRr0Gy0GfGW/5BOjnavjkNsCgYBZXod9kgApHXMTaY8mdNXhHOwwV5xkLaadCxZSN96YK4Ud2ymc
Mh1oxVpubsLu1XwHAxNJouJGDu3bl2MngtRDBEl25MdgMVvCrpQsBkmFctud+KnZ/mLZDvGxLxgf
zQ63wyS4HeJ8mXAPF/+SOXIrOttGNqFf7sEQSeRIC+7MCQKBgGF4ZwDpnQQryYE1JX3QBjNmaZNC
jM6p+dnEZycQ2EoAhrd17J/t+KlI3a5NjdfoP2GqAq9ZoHc023D/QTwmue1uVO2m0TZLwStdh9wM
fwm8E1ms4aFDqtv1TVZE3o1aPI2wkdIVRKJizX2VeZSTP7F9ancYUf5eIkODfVTsld3U
-----END RSA PRIVATE KEY-----

Save this key into a file on your laptop (e.g., tutorial-key.pem). Note that file must only be readable by you: chmod go-r tutorial-key.pem

You can then login like this:

ssh -i tutorial-key.pem ec2-user@IPADDRESS

where IPADDRESS is the URL you claimed on the spreadsheet.

dhollman commented 5 years ago

On Windows, to change the permissions, you need your user SID, which you can get with whoami /user:

c:\>whoami /user
USER INFORMATION
----------------
User Name      SID
============== ==============================================
mydomain\wincmd S-1-5-21-7375663-6890924511-1272660413-2944159

Then you need to deny permissions to everyone except for that SID using icacls (untested):

c:\>icacls tutorial-key.pem /deny *:F /grant MYSID:R

where MYSID is the number from the whoami command above.