Fundraising/tech/ssh config: Difference between revisions
< Fundraising | tech
Content deleted Content added
Cdentinger (talk | contribs) add mkdir and touch, hope this works on Mac OS! |
Cdentinger (talk | contribs) more basic explanation |
||
Line 1: | Line 1: | ||
In order to access frack hosts (such as frdev1001) you must have a proper ssh config. |
In order to access frack hosts (such as frdev1001) you must have a proper [https://en.wikipedia.org/wiki/Secure_Shell ssh] ssh config. This involves making a [https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory hidden directory] inside your |
||
[https://en.wikipedia.org/wiki/Home_directory home directory]: |
|||
mkdir -p ~/.ssh |
mkdir -p ~/.ssh |
||
Next make a new [https://en.wikipedia.org/wiki/Computer_file file] in the new directory: |
|||
touch ~/.ssh/config |
touch ~/.ssh/config |
||
Open the file in your preferred [https://en.wikipedia.org/wiki/Text_editor text editor]: |
|||
open -a TextEdit ~/.ssh/config |
open -a TextEdit ~/.ssh/config |
||
The file should look more or less like this: |
The file should look more or less like this: |
||
Host frbast.wikimedia.org |
Host frbast.wikimedia.org |
||
User your_username_here |
User your_username_here |
||
Line 15: | Line 26: | ||
IdentityFile ~/.ssh/id_rsa |
IdentityFile ~/.ssh/id_rsa |
||
ProxyCommand ssh -a -W %h:%p frbast.wikimedia.org |
ProxyCommand ssh -a -W %h:%p frbast.wikimedia.org |
||
Make it so, and save. The name of "id_rsa" may vary. |
Make it so, and save. The name of "id_rsa" may vary. |
Revision as of 15:33, 14 November 2018
In order to access frack hosts (such as frdev1001) you must have a proper ssh ssh config. This involves making a hidden directory inside your home directory:
mkdir -p ~/.ssh
Next make a new file in the new directory:
touch ~/.ssh/config
Open the file in your preferred text editor:
open -a TextEdit ~/.ssh/config
The file should look more or less like this:
Host frbast.wikimedia.org User your_username_here IdentitiesOnly yes IdentityFile ~/.ssh/id_rsa ProxyCommand none Host *.frack.* frdev1* User your_username_here IdentitiesOnly yes IdentityFile ~/.ssh/id_rsa ProxyCommand ssh -a -W %h:%p frbast.wikimedia.org
Make it so, and save. The name of "id_rsa" may vary.