mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-22 08:15:13 +00:00
Add files
This commit is contained in:
parent
e97a257c56
commit
ffdead9fa2
@ -70,7 +70,7 @@ title: "Employment History"
|
||||
<div style="flex-direction: row">
|
||||
<h3 style="margin-top: 5px">ezyVet</h3>
|
||||
<h4 style="margin-top:-16px; color: #afbac4">Site Reliability Engineer</h4>
|
||||
<p style="margin-top:-20px;">August 2019 - December 2022</p>
|
||||
<p style="margin-top:-20px;">August 2019 - December ezy2022</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
28
content/posts/syncing_ssh_configs.md
Normal file
28
content/posts/syncing_ssh_configs.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: "Easy syncing SSH configs on macOS"
|
||||
tags: ["syncing", "config", "ssh"]
|
||||
date: "2023-08-17"
|
||||
featuredimagepreview: "/cathacker1.jpg"
|
||||
---
|
||||
|
||||
Maintaining SSH configs can be a pain when you're hopping between multiple devices, even more when syncing apps (Synology/NextCloud/etc) are blocked on some networks/devices.
|
||||
|
||||
Make sure you have iCloud Drive enabled and this will symlink your SSH config + key to a folder in iCloud Drive and sync across devices.
|
||||
|
||||
The iCloud Drive is located at ~/Library/Mobile Documents/com~apple~CloudDocs. By putting this file + your config/id_rsa files in here, it will simply symlink them. Warning - the setup script will overwrite existing config/id_rsa files.
|
||||
|
||||
```setup.sh
|
||||
#!/bin/bash
|
||||
FOLDER=$(pwd)
|
||||
ln -sf "$FOLDER/config" ~/.ssh/config
|
||||
ln -sf "$FOLDER/id_rsa" ~/.ssh/id_rsa
|
||||
```
|
||||
|
||||
```install
|
||||
cd ~/Library/Mobile Documents/com~apple~CloudDocs
|
||||
mkdir macOS && cd macOS
|
||||
# Create above setup.sh file and copy in your .ssh/config and .ssh/id_rsa keys
|
||||
./setup.sh
|
||||
```
|
||||
|
||||
Heavily inspired by [This post](https://leihao0.github.io/Sync-macOS-ssh-config-with-iCloud/)
|
BIN
static/cathacker1.jpg
Normal file
BIN
static/cathacker1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Loading…
Reference in New Issue
Block a user