Uploading SSH Key to new Disk
When creating a new Metworx disk, uploading your SSH key is imparitive to stay connected to different systems such as SVN, GHE and VSCode.
Uploading SSH key
In your Metworx dashboard:
- Launch RStudio and go to existing seesion or create new session.
- On the RStudio interface, click More within the file viewer pane. Then click Show Hidden Files.
- Double click
id_rsa.pubfiles then click Delete.
- Click Upload.
- Click Choose File then go to your user folder.
Command + shift + .on your keyboard to reveal hidden folders.
- Double click
.sshfolder then select
id_rsafile. Then click Open.
- Click OK to upload the file.
- Repeat the above steps to upload
- Go to Terminal pane in RStudio interface then navigate to
.sshfolder by typing following command.
cat id_rsa.pub >> authorized_keys
- To change file permissions, type following commands.
chmod 400 id_rsa*
- In the Terminal Pane and type following commands, replace yourMC1username with your MC1 username.
cat << EOF > config Host mc1 Hostname m1.metrumrg.com User yourMC1username Identityfile ~/.ssh/id_rsa EOF
Alternatively, If your metworx blueprint is later than 22.09.0, you can use below optional steps.
- Verify by SSH into MC1.
- Type yes to establish fingerrping.
The authenticity of host 'mc1.metrumrg.com (10.1.3.152)' can't be established. ECDSA key fingerprint is SHA256:5RnyAp0owvXwGKYgdwjJg7vX6jhS+4ooT22QDKexjFQ. Are you sure you want to continue connecting (yes/no)? yes
- If successful, expect output such as below.
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.15.0-1015-aws x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Dec 2 20:48:12 UTC 2022 System load: 0.0 Processes: 112 Usage of /: 62.0% of 7.68GB Users logged in: 0 Memory usage: 7% IPv4 address for ens5: 10.1.3.152 Swap usage: 0% * Ubuntu Pro delivers the most comprehensive open source security and compliance features. https://ubuntu.com/aws/pro 96 updates can be applied immediately. 72 of these updates are standard security updates. To see these additional updates run: apt list --upgradable New release '22.04.1 LTS' available. Run 'do-release-upgrade' to upgrade to it.
Please submit a ticket for any questions or issues.