Mercurial > hg > Blog
comparison content/Linux/sshfs_with_key.md @ 98:1d9382b0329b
Specify the syntax on markdown blocks to avoid broken output that has class=err
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 19 Dec 2019 10:04:33 +0100 |
parents | af7de87037e7 |
children |
comparison
equal
deleted
inserted
replaced
97:e99db3bc53c1 | 98:1d9382b0329b |
---|---|
8 | 8 |
9 Now I stumbled over the [Arch Linux](https://www.archlinux.org/)' Wiki which had the right bit of info hidden inside of their [sshfs documentation page](https://wiki.archlinux.org/index.php/sshfs). | 9 Now I stumbled over the [Arch Linux](https://www.archlinux.org/)' Wiki which had the right bit of info hidden inside of their [sshfs documentation page](https://wiki.archlinux.org/index.php/sshfs). |
10 | 10 |
11 Long story short: To mount via sshfs using an existing ssh key, use | 11 Long story short: To mount via sshfs using an existing ssh key, use |
12 | 12 |
13 :::shell | |
13 sshfs -o IdentityFile=/path/to/the/ssh/private/key host:/dir /mountpoint | 14 sshfs -o IdentityFile=/path/to/the/ssh/private/key host:/dir /mountpoint |
14 | 15 |
15 This approach even works with an ssh agent. Make sure that you get all prompts out of the way (i.e. asking for the key password etc) before mounting. | 16 This approach even works with an ssh agent. Make sure that you get all prompts out of the way (i.e. asking for the key password etc) before mounting. |