mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-22 08:15:13 +00:00
updates
This commit is contained in:
parent
92df6f5881
commit
cfbe2b3d31
@ -10,20 +10,24 @@ Maintaining SSH configs can be a pain when you're hopping between multiple devic
|
|||||||
|
|
||||||
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.
|
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.
|
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
|
Install
|
||||||
#!/bin/bash
|
```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
|
cd ~/Library/Mobile Documents/com~apple~CloudDocs
|
||||||
mkdir macOS && cd macOS
|
mkdir macOS && cd macOS
|
||||||
# Create above setup.sh file and copy in your .ssh/config and .ssh/id_rsa keys
|
# Create above setup.sh file and copy in your .ssh/config and .ssh/id_rsa keys
|
||||||
./setup.sh
|
./setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
setup.sh file
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
FOLDER=$(pwd)
|
||||||
|
ln -sf "$FOLDER/config" ~/.ssh/config
|
||||||
|
ln -sf "$FOLDER/id_rsa" ~/.ssh/id_rsa
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Heavily inspired by [This post](https://leihao0.github.io/Sync-macOS-ssh-config-with-iCloud/)
|
Heavily inspired by [This post](https://leihao0.github.io/Sync-macOS-ssh-config-with-iCloud/)
|
||||||
|
Loading…
Reference in New Issue
Block a user