# BAAGs Workshop Welcome ###### tags: `code` First we need to connect to Virtual Machine and IP address ### 1. open key from email and create file named “key” `curl` is a a command line tool to transfer data from a server We need: a. Virtual Machine: cjs-12 b. IP: 34.148.164.14 c. Please find the Signed URL for Private Key (i named it my.key below) ``` curl -o my.key "https://storage.googleapis.com/bucket-unc-edu-cjs-admin/keys/vm-cjs-12-private-key?GoogleAccessId=sa-cjs-admin@unc-som-genetics-wkshop.iam.gserviceaccount.com&Expires=1654284812&Signature=YDxkQXu2fSrGMIWGUTDo6Y4biR%2FSbY6AoVc%2BW2b1%2FJve6dRiaI3z1SkgjV7A1UwenS%2F%2FBa8Pk68c1U%2Bpzw7vNw1o7ngiEW%2B31oNsl%2BtFgiMhT5USQUnMJ6DUyuHIKc063rJlvzPGU6%2BLjql1dgsa6wXQTzM%2FaUIAH6YpGwjCXlXrhXTDK9njYVJsqchxLs5iM9cp3RhN0ynWoCg%2Fuor3PO4593wWi51kK5XN0KnOh320FIq3XHkDVaHtHHh%2FQPH142oPQi06yLKs5WAgTgwIPO5ZJ3n5V9kWW1GCR94kxoyd666Ak9GqTd271TJD8Tsh792x8JgAFDeZyHuLNIPxJA%3D%3D" ``` ### 2. Allow users to read, write and not execute files Chmod 600 (chmod a+rwx,u-x,g-rwx,o-rwx) sets permissions so that, (U)ser / owner can read, can write and can't execute `chmod 600 my.key` ### 3. create file “config” using text editor labuser is the account they've made for me for this workshop. Logging into the server as 'labuser' `ssh labuser@34.148.164.14 -i my.key` past template and change host to your cjs-??? (whatever you have) change hostname to your IP_ADDRESS