fix formatting on ssh config post
This commit is contained in:
parent
06279b7017
commit
6ff5f36497
Binary file not shown.
|
@ -2,8 +2,8 @@
|
|||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<channel><title>blog~ben@tilde.team</title><link>https://tilde.team/~ben/blog/index.html</link>
|
||||
<description>a blog about tildes and other things</description><language>en</language>
|
||||
<lastBuildDate>Fri, 12 Jan 2018 13:30:28 -0500</lastBuildDate>
|
||||
<pubDate>Fri, 12 Jan 2018 13:30:28 -0500</pubDate>
|
||||
<lastBuildDate>Fri, 12 Jan 2018 13:52:21 -0500</lastBuildDate>
|
||||
<pubDate>Fri, 12 Jan 2018 13:52:21 -0500</pubDate>
|
||||
<atom:link href="https://tilde.team/~ben/blog/feed.rss" rel="self" type="application/rss+xml" />
|
||||
<item><title>
|
||||
git remotes with ssh aliases
|
||||
|
@ -11,32 +11,35 @@ git remotes with ssh aliases
|
|||
|
||||
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
|
||||
|
||||
<p>~/.ssh/config
|
||||
<code>
|
||||
<p>~/.ssh/config</p>
|
||||
|
||||
<pre>
|
||||
Host gh
|
||||
HostName github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/gh_key.pub
|
||||
</code></p>
|
||||
IdentityFile ~/.ssh/gh_key
|
||||
</pre>
|
||||
|
||||
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
|
||||
|
||||
<p><code>git clone gh:benharri/learngit</code></p>
|
||||
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
|
||||
<code>
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
|
||||
|
||||
<pre>
|
||||
Host tilde
|
||||
HostName tilde.team
|
||||
User ben
|
||||
</code>
|
||||
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
</pre>
|
||||
|
||||
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
|
||||
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
|
||||
|
||||
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
|
||||
<!-- text end -->
|
||||
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=<Type your comment here but please leave the URL so that other people can follow the comments>&via=nebsirrah'>Comments? Tweet</a>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a> </p>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a> </p>
|
||||
]]></description><link>https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html</link>
|
||||
<guid>https://tilde.team/~ben/blog/./git-remotes-with-ssh-aliases.html</guid>
|
||||
<dc:creator>ben</dc:creator>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<meta name='twitter:card' content='summary' />
|
||||
<meta name='twitter:site' content='@nebsirrah' />
|
||||
<meta name='twitter:title' content='git remotes with ssh aliases' />
|
||||
<meta name='twitter:description' content=" did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as the remote in place of git@github.com:username/repo, which is mu" />
|
||||
<meta name='twitter:description' content=" did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the remote in place of git@github.com:username/repo, which is much " />
|
||||
</head><body>
|
||||
<div class="container">
|
||||
|
||||
|
@ -36,32 +36,35 @@ ben
|
|||
|
||||
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
|
||||
|
||||
<p>~/.ssh/config
|
||||
<code>
|
||||
<p>~/.ssh/config</p>
|
||||
|
||||
<pre>
|
||||
Host gh
|
||||
HostName github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/gh_key.pub
|
||||
</code></p>
|
||||
IdentityFile ~/.ssh/gh_key
|
||||
</pre>
|
||||
|
||||
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
|
||||
|
||||
<p><code>git clone gh:benharri/learngit</code></p>
|
||||
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
|
||||
<code>
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
|
||||
|
||||
<pre>
|
||||
Host tilde
|
||||
HostName tilde.team
|
||||
User ben
|
||||
</code>
|
||||
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
</pre>
|
||||
|
||||
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
|
||||
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
|
||||
|
||||
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
|
||||
<!-- text end -->
|
||||
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=<Type your comment here but please leave the URL so that other people can follow the comments>&via=nebsirrah'>Comments? Tweet</a>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a> </p>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a> </p>
|
||||
<!-- entry end -->
|
||||
</div>
|
||||
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben">ben</a> — <a href="mailto:ben@tilde.team">ben@tilde.team</a><br/>
|
||||
|
|
|
@ -4,12 +4,13 @@ did you know that `~/.ssh/config` aliases work for git remotes??
|
|||
|
||||
|
||||
~/.ssh/config
|
||||
```
|
||||
|
||||
<pre>
|
||||
Host gh
|
||||
HostName github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/gh_key.pub
|
||||
```
|
||||
IdentityFile ~/.ssh/gh_key
|
||||
</pre>
|
||||
|
||||
you can now use `gh:username/repo` as the remote in place of `git@github.com:username/repo`, which is much shorter and easier to type many times!
|
||||
|
||||
|
@ -17,11 +18,13 @@ you can now use `gh:username/repo` as the remote in place of `git@github.com:use
|
|||
|
||||
|
||||
there are many other use cases for the `ssh_config` file. for example, here is my config for the tilde machine for easy ssh connections.
|
||||
```
|
||||
|
||||
<pre>
|
||||
Host tilde
|
||||
HostName tilde.team
|
||||
User ben
|
||||
```
|
||||
</pre>
|
||||
|
||||
then use `ssh tilde` to start a new ssh session. this also works with `scp`: try something like this `scp file.txt tilde:workspace/.` in place of `scp file.txt ben@tilde.team:workspace/.`
|
||||
|
||||
the ssh_config file is super useful. check `man ssh_config` for a full list of options!
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<meta name='twitter:card' content='summary' />
|
||||
<meta name='twitter:site' content='@nebsirrah' />
|
||||
<meta name='twitter:title' content='blog~ben@tilde.team' />
|
||||
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 — ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as " />
|
||||
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 — ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the" />
|
||||
<meta name='twitter:image' content='https://tilde.zone/photos/Screenshot_20180105-094720.png' />
|
||||
</head><body>
|
||||
<div class="container">
|
||||
|
@ -36,32 +36,35 @@ ben
|
|||
|
||||
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
|
||||
|
||||
<p>~/.ssh/config
|
||||
<code>
|
||||
<p>~/.ssh/config</p>
|
||||
|
||||
<pre>
|
||||
Host gh
|
||||
HostName github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/gh_key.pub
|
||||
</code></p>
|
||||
IdentityFile ~/.ssh/gh_key
|
||||
</pre>
|
||||
|
||||
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
|
||||
|
||||
<p><code>git clone gh:benharri/learngit</code></p>
|
||||
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
|
||||
<code>
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
|
||||
|
||||
<pre>
|
||||
Host tilde
|
||||
HostName tilde.team
|
||||
User ben
|
||||
</code>
|
||||
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
</pre>
|
||||
|
||||
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
|
||||
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
|
||||
|
||||
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
|
||||
<!-- text end -->
|
||||
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=<Type your comment here but please leave the URL so that other people can follow the comments>&via=nebsirrah'>Comments? Tweet</a>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a> </p>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a> </p>
|
||||
<h3><a class="ablack" href="cold.html">
|
||||
cold
|
||||
</a></h3>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<meta name='twitter:card' content='summary' />
|
||||
<meta name='twitter:site' content='@nebsirrah' />
|
||||
<meta name='twitter:title' content='blog~ben@tilde.team — Posts tagged "git"' />
|
||||
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 — ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as " />
|
||||
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 — ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the" />
|
||||
</head><body>
|
||||
<div class="container">
|
||||
|
||||
|
@ -35,32 +35,35 @@ ben
|
|||
|
||||
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
|
||||
|
||||
<p>~/.ssh/config
|
||||
<code>
|
||||
<p>~/.ssh/config</p>
|
||||
|
||||
<pre>
|
||||
Host gh
|
||||
HostName github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/gh_key.pub
|
||||
</code></p>
|
||||
IdentityFile ~/.ssh/gh_key
|
||||
</pre>
|
||||
|
||||
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
|
||||
|
||||
<p><code>git clone gh:benharri/learngit</code></p>
|
||||
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
|
||||
<code>
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
|
||||
|
||||
<pre>
|
||||
Host tilde
|
||||
HostName tilde.team
|
||||
User ben
|
||||
</code>
|
||||
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
</pre>
|
||||
|
||||
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
|
||||
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
|
||||
|
||||
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
|
||||
<!-- text end -->
|
||||
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=<Type your comment here but please leave the URL so that other people can follow the comments>&via=nebsirrah'>Comments? Tweet</a>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a> </p>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a> </p>
|
||||
</div>
|
||||
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben">ben</a> — <a href="mailto:ben@tilde.team">ben@tilde.team</a><br/>
|
||||
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<meta name='twitter:card' content='summary' />
|
||||
<meta name='twitter:site' content='@nebsirrah' />
|
||||
<meta name='twitter:title' content='blog~ben@tilde.team — Posts tagged "ssh"' />
|
||||
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 — ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as " />
|
||||
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 — ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the" />
|
||||
</head><body>
|
||||
<div class="container">
|
||||
|
||||
|
@ -35,32 +35,35 @@ ben
|
|||
|
||||
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
|
||||
|
||||
<p>~/.ssh/config
|
||||
<code>
|
||||
<p>~/.ssh/config</p>
|
||||
|
||||
<pre>
|
||||
Host gh
|
||||
HostName github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/gh_key.pub
|
||||
</code></p>
|
||||
IdentityFile ~/.ssh/gh_key
|
||||
</pre>
|
||||
|
||||
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
|
||||
|
||||
<p><code>git clone gh:benharri/learngit</code></p>
|
||||
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
|
||||
<code>
|
||||
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
|
||||
|
||||
<pre>
|
||||
Host tilde
|
||||
HostName tilde.team
|
||||
User ben
|
||||
</code>
|
||||
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
</pre>
|
||||
|
||||
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
|
||||
|
||||
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
|
||||
|
||||
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
|
||||
<!-- text end -->
|
||||
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=<Type your comment here but please leave the URL so that other people can follow the comments>&via=nebsirrah'>Comments? Tweet</a>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a> </p>
|
||||
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a> </p>
|
||||
</div>
|
||||
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben">ben</a> — <a href="mailto:ben@tilde.team">ben@tilde.team</a><br/>
|
||||
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
|
||||
|
|
Loading…
Reference in New Issue